IF ISCLEAR(DataXML) THEN CREATE(DataXML,TRUE,TRUE); XMLDocInstr := DataXML.createProcessingInstruction('xml','version="1.0" encoding="UTF-16"'); DataXML.insertBefore(XMLDocInstr, DataXML.childNodes.item(0)); Where DataXML Automation 'Microsoft XML, v6.0'.DOMDocument60 XMLDocInstr Automation 'Microsoft XML, v6.0'.IXMLDOMProcessingInstruction
This message is for C/AL programmers: The call to member insertBefore failed: The parameter is incorrect. .