XML in .NET

Visual Studio and the .NET Framework have built-in support for designing schemas, editing and creating XML files, and a complete set of class libraries for writing applications that need to read and write XML.

The core XML classes in .NET are compliant with the W3C standards for XML, XSLT 1.0, XPath 1.0, DOM Level 1 and DOM Level 2, namespaces, XSD 1.0, and XSD schema. That compliance means interoperability between different systems isn't an issue.

In .NET, all XML-specific classes are in the System.Xml namespace. The System.XML namespace is a complete XML parser with extensible classes that enable you to work with XML in any number of ways. The abstract XmlReader, XmlWriter, and XmlDocument classes provide parsing, reading, writing, and validation for XML documents, respectively. The XslTransform and XPathDocument classes provide XSLT stylesheet transformation capabilities. Using the DataSet class in ADO .NET, you can create Dataset containers that can read and write XML documents and XML schemas by using the XmlReader, XmlWriter, or XmlDocument classes. Using the DataSet class to work with XML documents is extremely simple and efficient.

Figure 12.1 puts the different classes in the System.XML namespace in perspective.

Figure 12.1. XML objects in the System.XML namespace.


Before getting into the specific classes you can use to manipulate XML documents, you learn how to use the tools in Visual Studio .NET to create and edit XML schemas and XML documents.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.208.12