Re: XML Declaration

"bruno vernay" <[email protected]>
Newsgroups gmane.comp.mozilla.devel.xml
Organization http://groups.google.com
Message-ID <[email protected]>
Dirty hack :
    var piElem = doc.createProcessingInstruction("xml", "version='1.0'
encoding='UTF8'");
...
    doc.appendChild(rootElem);
    doc.insertBefore(piElem, rootElem);

Note :
 - you can claim UTF-8 and encode in ISO-8859-1
 - a XML Declaration is not a Processing Instruction
Real dirty ...
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.