How to read an XML file in a Visual C++ application?
I need to read an XML file in a Visual Studio 2003 C++ COM ATL application – unmanaged code. What library should I use: msxml, xmllite, other?
I need to check that the xml satisfies its xsd I've defined and then read it.
Sample code welcomed 😉
Thanks in advance.
Best Answer
I used tinyXML. It is very restricted(no DTDs, no XSL), but it loads XML-Files into doms, is very small and fast. If you just want to read an xml-file to extract information out of it: that is the way to go.