I'm struggling to understand how to use HaXml to parse the following XML file (as an example):\[code\]<?xml version="1.0" encoding="UTF-8"?><root> <author>Mark</author> <year>2012</year></root>\[/code\]Specifically, how do I:
- Identify that the XML document is well-formed (I assume that I use the function xmlParse, which should hopefully do this for me)
- Identify that the XML document is valid
- Find the tag and read the string "Mark" into a value of type String
- Find the tag and read the number 2012 into a value of type Int