Name DataType Subtype Length
ProcInstr Automation 'Microsoft XML, v2.6'.IXMLDOMProcessingInstruction
Var Name DataType Subtype Length
Íåò Encoding Text 60
CREATE(XMLDoc);
IF XMLDeclaration THEN BEGIN
XMLNewProcessInst := XMLDoc.createProcessingInstruction('xml','version="1.0" encoding="UTF-8"');
XMLDoc.appendChild(XMLNewProcessInst);
END;
Comments
OleProcInstr := XMLReport.createProcessingInstruction('xml',
' version="1.0" encoding="' + TxtEncoding + '"');
TxtEncoding = your charset (you can change it)
check CU 12408
CU 12408 is not a standard CU? I can't find it.
XMLReport Automation 'Microsoft XML, v2.6'.FreeThreadedDOMDocument
CreateXMLDoc(VAR OleXMLDoc : Automation "Unknown Automation Server.Unknown Class";TxtEncoding : Text[60];VAR OleRootNode : Automation "
XMLReport := OleXMLDoc;
IF ISCLEAR(XMLReport) THEN
CREATE(XMLReport);
OleProcInstr := XMLReport.createProcessingInstruction('xml',
' version="1.0" encoding="' + TxtEncoding + '"');
XMLReport.appendChild(OleProcInstr);
CLEAR(OleProcInstr);
OleRootNode := XMLReport.createElement(TxtRootTagName);
XMLReport.appendChild(OleRootNode);
Regards
ProcInstr Automation 'Microsoft XML, v2.6'.IXMLDOMProcessingInstruction
Var Name DataType Subtype Length
Íåò Encoding Text 60
AddXMLHeader(Encoding : Text[60])
ProcInstr := XMLReport.createProcessingInstruction('xml',
' version="1.0" encoding="' + Encoding + '"');
XMLReport.appendChild(ProcInstr);
CLEAR(ProcInstr);