libxml TxmlDoc.newDoc()
BlitzMax Forums/Brucey's Modules/libxml TxmlDoc.newDoc()
| ||
hi there. I have a question: How can I create a completely new xml file using the libxml module? I fine with reading xml files, but now I want my program to create a new one (to save some player profiles). So I started with: doc:TXmlDoc = TXmlDoc.newDoc("1.0") ... doc.saveFile(profiles.xml) But there is no root node in the doc, and I dont know how to get one in ther since I just see a command node.addChild(), but not doc.addRootNode() or something like that. Anybody here who can help me? Edit: I found it out: node:TXMLNode = TXMLNode.newNode("typename") doc.setRootElement(node) |