xmlDocumentCreate a new XML documentCalling Sequence
doc = xmlDocument([uri, [, version]])
Argumentsuria string giving document uriversiona string giving the XML version ofthe documentdoca mlist typed XMLDocDescriptionCreate a new XML document.Exampleshello";
root.children(2) = xmlElement(doc, "b");
root.children(2).attributes.id = "123";
root.children(2).content = " world";
doc.root = root;
xmlDump(doc)
xmlDelete(doc);
]]>See Also
XML Objects
xmlElement
History5.4.0XML module introduced.