12345678910111213141516171819202122232425262728 |
- SuperStrict
- Framework text.xml
- Import BRL.StandardIO
- Local doc:TxmlDoc = TxmlDoc.newDoc("1.0")
- If doc Then
-
- Local root:TxmlNode = TxmlNode.newNode("root")
- doc.setRootElement(root)
-
- ' create a new empty node
- Local node:TxmlNode = root.addChild("node")
- Print node.toString()
- ' set the node content
- node.setContent("Some text content for the node")
-
- Print node.toString()
-
- ' change the node content
- node.setContent("Modified content!")
-
- Print node.toString()
- End If
|