Murach's C++ 2008
How to work with XML files

To start, this chapter presents the basics of XML and shows you how to use the Visual Studio XML Editor for working with XML. Then, it shows you how to use C++ with the XmlWriter and XmlReader classes to store XML documents in a file and to read XML documents from a file.

Chapter 18 How to work with XML files
An introduction to XML 500
An XML document 500
XML tags, declarations, and comments 502
XML elements 502
XML attributes 504
How to work with the XML Editor 506
How to create a new XML file 506
How to open an existing XML file 506
How to edit an XML file 506
How to work with XML 508
How to use the XmlWriter class 508
Code that writes an XML document 510
How to use the XmlReader class 512
How the XmlReader class reads nodes 514
Code that reads an XML document 516
A class that works with an XML file 516




Murach's C++ 2008

Learn more about this book

View the table of contents


More about the eBook



Our 100% Guarantee

First, try our books for 90 days. Then, if you aren't completely convinced that our books are the best ones you've ever used, you can return them for a prompt refund...no questions asked.