Hi all,
I have a codeunit where an XML Dom DOC is generated. This all works. But there is no XML declaration like <?xml version="1.0" encoding="UTF-8"?> in the XMl document.
I use the 'Microsoft XML, v5.0'.DOMDocument automation.
Does anybody know how to do this?
Thanx in advance.
Greetings,
Don
0
Comments
XMLDomInst := XMLDomDocument.createProcessingInstruction('xml','version="1.0" encoding="UTF-8"');
XMLDomNode := XMLDomDocument.appendChild(XMLDomInst);
XMLDomDocument is -> ''Microsoft XML, v6.0'.DOMDocument60'
XMLDomInst is -> 'Microsoft XML, v6.0'.IXMLDOMProcessingInstruction
XMLDomNode is -> ''Microsoft XML, v6.0'.IXMLDOMNode'
I suppose it is the same in 5... :?:
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
It works fine! ProcessingInstruction, I will never forget this.
Thanx a lot.
Don
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
True... How many times we look back to remember how we accomplished something in the past. And then it is... Copy/Paste :oops: