A small file exercising all the features in the parser... Mary had a <little> lamb who liked standard entities This is some text, with character references (O W) and some cdata sections inside to make it more interesting. How about this pepe ]]> ? In the next pcdata chunk there is an unknown entity 1.24 ¬known;3.45 (It was flagged, but the parser continued) In the following chunk there is a character reference out of range of the char() intrinsic... remove it from test.xml if it gives you trouble. Offending reference: ඀ 2.454 9.455 >>]]]<<<>!? ]]>