What does a non validating xml parser do
It contains a reference to an XSD file, which you will also need to copy from below or download and enter into the webpage (in a second step, when you are prompted for it) to see the validation results.
For this article we’ll dive further into the processing of XML files.
We are not creating a program that can read any random XML file, we only need to read a specific XML document.
For that kind of file we don’t need any validation, we know the format and it is what we are expecting.
Summarizing both articles, an XML file is just a formatted text file, we can read the data contained by hand using a simple ASCII FILE but then we need to parse the file to extract the content, to make that process much easier we use the XMLFile Parser class.
This project started from my frustration that I could not find any simple, portable XML Parser to use inside all my projects (for example, inside the award-winning TIMi software suite commercialized by the Business-Insight company). I was using XML as standard for all my input/ouput configuration and data files.
You can also modify the tree using "add" and "delete" functions and regenerate a formatted XML string from a subtree.
Memory management is totally transparent through the use of smart pointers (in other words, you will never have to do any new, delete, malloc or free)("Smart pointers" are a primitive version of the garbage collector in Java).
Of course, you can also parse XML data that you have already stored yourself into a memory buffer.
Thereafter, you can easily "explore" the tree to get your data.