Thanks Michael,

I also have a requirement to parse a huge XML file of size 4-5 GB. Can you please guide me how I should approach using saxon processor.



On Wed, Apr 25, 2012 at 2:18 PM, Andrew Welch <> wrote:
On 25 April 2012 08:23, Geet Gangwar <> wrote:
> Hi,
> Is there a way to parse XML file having special characters like "&" using
> saxon parser.

If your file has lone &'s then it will fail an xml parse and so cant
be treated as xml.

The usual advice is pass on this wisdom to whoever created that file
and called it .xml and tell them about their problem.

They need to use a proper xml writer, and not just write a string to
disk.  Unescaped ampersands is just the first stop on a very long road
of problems if you dont use a proper xml writer.

Andrew Welch

Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
saxon-help mailing list archived at