txmlnode_findelement.bmx 308 B

1234567891011121314151617181920
  1. SuperStrict
  2. Framework Text.xml
  3. Import brl.standardio
  4. Local docname:String = "sample.xml"
  5. Local doc:TxmlDoc
  6. doc = TxmlDoc.parseFile(docname)
  7. If doc Then
  8. Local root:TxmlNode = doc.getRootElement()
  9. Local node:TxmlNode = root.findElement("author")
  10. If node Then
  11. Print node.ToString()
  12. End If
  13. End If