Conclusion

This chapter presented the .NET Framework classes that provide XML DOM capabilities. Using these classes—primarily XmlDocument and XmlNode—you can parse XML documents, building in-memory and fully accessible representations of data.

The overall programming interface of the XmlDocument class might look familiar to those of you who have spent some time working with the Microsoft COM-based MSXML library. The XmlDocument class provides methods to load XML documents from a variety of sources, including XML readers and streams. The loading of a document can happen only synchronously, but you can significantly lessen the impact of this design issue by using multiple threads.

To locate a node in the in-memory tree that represents the original ...

Get Applied XML Programming for Microsoft® .NET 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.