LOCAL XML AS MSXML2.DOMDocument60 m.XML = CREATEOBJECT("MSXML2.DOMDocument.6.0") m.XML.appendChild(m.XML.createProcessingInstruction("xml", 'version="1.0" encoding="utf-8"')) m.XML.appendChild(m.XML.createElement("root")) m.XML.childNodes(1).appendChild(m.XML.createTextNode("La Méditerranée et le Monde méditerranéen à l'époque de Philippe II")) m.XML.save("holste.xml")This will produce, verbatim (encoded as UTF-8)
<?xml version="1.0" encoding="utf-8"?> <root>La Méditerranée et le Monde méditerranéen à l'époque de Philippe II</root>>Hi there,
>oxml = createobject("msxml2.domdocument") >opi= oXML.createProcessingInstruction('xml','version="1.0" encoding="UTF-8"') >* or, as found in a Doug Hennig post >opi= x.createProcessingInstruction('xml','version="1.0"' + ' encoding="UTF-8"') >oXML.appendChild( oPI ) >>But it makes no difference what I use, the encoding doesn't show up in the processing instruction.