Adding a comment to an XML node

So I don't forget: Adding a comment to an existing IXMLNode is simple, once you find out how: [delphi] var CommentNode: IXMLNode; begin CommentNode := ParentNode.OwnerDocument.CreateNode('comment text', ntComment); ParentNode.ChildNodes.Add(CommentNode); [/delphi] This is documented in the DocWiki