Bob Hutchison <hutch / xampl.com> writes:

> > Suppose you are processing
> > 
> > <?xml version="1.0" encoding="iso-8859-1"?>
> > <foo>&#x03C0;</foo>
[...]
> In this case the input is not encoded as promised. The XML parser is
> supposed to fail.
[...]
> In the example you have provided has an error in the XML file.

There is no error in this document. It is well-formed. The encoding
only determines how to interpret the bytes in the document. It is no
error whatsoever to put arbitrary character references at any place in
the document that you like.

Regards,
Martin