txmlnode_newnode.bmx 341 B

1234567891011121314151617
  1. Framework text.xml
  2. Import brl.standardio
  3. Local doc:TxmlDoc = TxmlDoc.newDoc("1.0")
  4. If doc Then
  5. ' create a new node, initially not attached to the document
  6. Local root:TxmlNode = TxmlNode.newNode("root")
  7. ' set the node as the document root node
  8. doc.setRootElement(root)
  9. ' output the document to stdout
  10. doc.saveFile("-")
  11. End If