RE: Issue with xml prolog

"Michael Kay" <[email protected]>
Newsgroups gmane.comp.java.jdom.general
Message-ID <00a901c82dbb$7fadccd0$6501a8c0@turtle>
> <attribute ><value>
> <?xml version="1.0" encoding="ISO-8859-1"?> <note id="1"> HI 
> </note> </value></attribute>
> 
> The difference here is id="1". Pls explain why it is not 
> giving any error on parsing it.

I've no idea. If you find an XML parser that accepts that file without error
then you should raise a bug report, it's a blatant non-conformance. This is
how Xerces reports it:

Error on line 2 column 6 of file:/c:/temp/test.xml:
 The processing instruction target matching "[xX][mM][lL]" is not allowed.

Michael Kay
http://www.saxonica.com/

_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.