maxml strange bugs???
BlitzMax Forums/BlitzMax Programming/maxml strange bugs???
| ||
| Is it me or is the pub.maxml module completely broken ? I have this piece of code: 'update xml file and add record
Local temp_xml:xmlDocument = New xmlDocument
Local temp_node:xmlNode
temp_xml.load("history.xml")
If temp_xml <> Null
'add the record
temp_node = temp_xml.root().addnode("peer")
temp_node.value = nname
'save teh xml file
temp_xml.save("history.xml");
temp_xml = Null
End IfAn it seems to spit out this file! <?xml version="1.0"?> <root> 	 <peer/> </root> What am I doing wrong ? |
| ||
| Well I figured the 2 issues. The 	 is the tab character being escaped instead of being used as an indent. The single <peer/> is when the node has not value. |