Re: text to XML object (E4X)

Jonas Sicking <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
> Thanks for your reply Martin. Yes, removing it works fine. Just one 
> question: Shouldn't the xml declaration be considered a Processing 
> Instruction and as such be ingnored when property 
> XML.ignoreProcessingInstructions = true?

What happens is actually exactly that. We try to parse <?xml as a 
processing instruction, however since the name 'xml' is reserved you get 
a parsing error.

In fact, the xml-declaration appearing at the top of a file is not a 
processing instruction. If you look at a DOM created by mozilla you'll 
notice that the xml-declaration does not show up as a PI. The xml spec 
explicitly states this.

/ Sicking
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.