You are previewing Essential LINQ.

Essential LINQ

Cover of Essential LINQ by Charlie Calvert... Published by Addison-Wesley Professional

Chapter 14. Querying and Editing XML

The previous chapter covered creating, reading, and saving XML documents. The next steps are to learn how to query and edit them. This chapter deals with XML documents similar to the ones shown in the previous chapter. You will learn how to navigate through these documents to find individual nodes or series of nodes. You can start your query at any point in a document. You can begin at the top node and drill down into the hierarchy, or you can start on a leaf node and climb back up toward the root node. Wherever you are in a document, you can start your search there and either look at the sibling nodes nearest you, or navigate up to a root node or down to a leaf node. Detailing the range of options open ...

The best content for your career. Discover unlimited learning on demand for around $1/day.