XML要素を新規に作成する
e = xmlElement(doc, name)
XMLDoc型のmlist
要素名を指定する文字列
XMLElem型のmlist
指定した名前を有するXML要素を新たに作成します.
doc = xmlReadStr("<root><a>Hello</a><b> world</b></root>"); e = xmlElement(doc, "c"); e.attributes.attr = "value"; e.content = "!"; doc.root.children(3) = e; xmlDump(doc) xmlDelete(doc); | ![]() | ![]() |
Version | Description |
5.4.0 | XMLモジュールが導入されました. |