I have a SAX2 parser which is exhibiting odd behaviour.

If I give it some XML with an XML declaration like:

<?xml version="1.0" encoding="UTF-8" ?>

it fails with a "Invalid document structure" error.
If I remove the encoding element, then it parses correctly.

Can anyone suggest what the problem is ? I'm assuming
that this is some interaction between the validator and
the encoding, but I'm baffled as to what, precisely.

This is occuring with Xerces-c 2.7.0.

-- 
Regards

Steve Collyer
Netspinner Ltd

Reply via email to