XML文書を新規に作成
doc = xmlDocument([uri, [, version]])
文書のuriを指定する文字列
文書のXMLバージョンを指定する文字列
XMLDoc型のmlist
XML文書を新規に作成します.
doc = xmlDocument("TMPDIR/foo.xml"); root = xmlElement(doc, "root"); root.attributes.attr = "value"; root.children(1) = "<a>hello</a>"; root.children(2) = xmlElement(doc, "b"); root.children(2).attributes.id = "123"; root.children(2).content = " world"; doc.root = root; xmlDump(doc) xmlDelete(doc); | ![]() | ![]() |
Version | Description |
5.4.0 | XMLモジュールが導入されました. |