Real-World Examples

Some of the examples in this section deal with topics covered in other chapters in this book. They are meant to show how XML can be leveraged inside an ASP.NET application.

Working with an XmlDocument

Listings 7.4 and 7.5 show the basics of how to open an XML document on the server, load XML from a string, perform some basic navigation, and manipulate the nodes of multiple XmlDocument objects.

The library.xml file shown in Listing 7.4 describes the possible "book" elements in the document. The "uri" attribute of each "book" element points to another XML file that contains more data to be loaded at a later time. When dealing with large amounts of data, such as a library card catalog, a single XML document containing all relevant ...

Get Inside ASP.NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.