Referenced Namespaces

Examples in this chapter reference the System.Xml, System.Xml.Schema, System.Xml.Xsl, and System.Xml.XPath namespaces, in addition to the typical LINQ and LINQ to XML namespaces, System.Linq and System.Xml.Linq. Therefore, you will want to add using directives for these if they are not already present:

using System.Linq;
using System.Xml;
using System.Xml.Linq;
using System.Xml.Schema;
using System.Xml.XPath;
using System.Xml.Xsl;

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.