Skip to content

Commit

Permalink
OmniXMLPersistent: Added XML processing instruction.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitar Grigorov committed Jul 25, 2022
1 parent fb6cfc3 commit 71cb4af
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions OmniXMLPersistent.pas
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ procedure CreateDocument(var XMLDoc: IXMLDocument; var Root: IXMLElement;
RootNodeName: XmlString);
begin
XMLDoc := CreateXMLDoc;
XMLDoc.AppendChild(XMLDoc.CreateProcessingInstruction('xml', 'version="1.0" encoding="utf-8"'));
Root := XMLDoc.CreateElement(RootNodeName);
XMLDoc.DocumentElement := Root;
end;
Expand Down

0 comments on commit 71cb4af

Please sign in to comment.