txmlnode_addcontent.bmx 398 B

12345678910111213141516171819
  1. SuperStrict
  2. Framework Text.xml
  3. Import brl.standardio
  4. Local doc:TxmlDoc = TxmlDoc.parseFile("attributes.xml")
  5. If doc Then
  6. Local node:TxmlNode = TxmlNode(doc.getRootElement().getFirstChild())
  7. Local desc:TxmlNode = node.addChild("description")
  8. desc.addContent("Some of the songs on this CD are awesome.~n")
  9. desc.addContent("Tracks 5 & 6 put this CD up there...")
  10. doc.savefile("-")
  11. End If