Additional XML Capabilities

In the previous two chapters, I demonstrated how to create, modify, and traverse XML data with the LINQ to XML API. I also demonstrated the building blocks for creating powerful XML queries. I hope by now you would agree that LINQ to XML will handle about 90 percent of your XML needs, but what about the remaining 10 percent? Let's see if we can get that percentage higher. If Microsoft added schema validation, transformations, and XPath query capability, what percentage of your use cases would that achieve?

While I have covered the new LINQ to XML API and how to perform the most basic of queries with it, I have yet to demonstrate slightly more complex, real-world queries. In this chapter, I provide some examples that ...

Get Pro LINQ: Language Integrated Query in C# 2008 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.