Introduction
In my MFC book, Visual C++ .NET Bible (New York: John Wiley & Sons, 2002), I included a chapter that illustrated how to write an MFC application to read and display the nodes of an XML file to a tree view control using the COM interfaces to the Microsoft XML DOM (Document Object Model). In that chapter's demo I illustrated that this seemingly trivial task required that you initialize COM, acquire an IXMLDOMDocumentPtr interface, call that interface's load method, and acquire the root element interface pointer (IXMLDOMElementPtr) via the documentElement member. Starting at the root element, you iterate through each node acquiring IXMLDOMNodePtr interface pointers and finally—on the basis of the node type—extract the name and value ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access