Summary

In the first section of this chapter, I illustrated how the XmlTextWriter and XmlTextReader classes are used to process XML documents in a sequential, fast-forward manner. In that section, you discovered how to read and write the various nodes of an XML document—including the declaration node, elements (using data of various application-specific types), and attributes. The section concluded with a demo illustrating the maintenance of a single-entity XML file using the XmlTextWriter and XmlTextReader classes. The second section then dove into the more elaborate world of the DOM and the XML classes that encapsulate it—XmlDocument and XmlNode. In that section, I first presented a short introduction to the DOM itself, followed quickly by ...

Get Extending MFC Applications with the .NET Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.