< Day Day Up > |
Topics in This Chapter
Extensible Markup Language (XML) plays a key role in the .NET universe. Configuration files that govern an application or Web page's behavior are deployed in XML; objects are stored or streamed across the Internet by serializing them into an XML representation; Web Services intercommunication is based on XML; and as we see in Chapter 11, "ADO.NET," .NET methods support the interchange of data between an XML and relational data table format. XML describes data as a combination of markup language and content that is analogous to the way HTML describes a Web page. Its flexibility permits it to easily represent flat, relational, or hierarchical data. To support one of its design goals that it "should be human-legible and reasonably clear"[1] it is represented in a text-only format. This gives it the significant advantage of being platform independent, which has made it the de facto standard for transmitting data over the Internet.
This chapter focuses on pure XML and the classes that reside in the System.Xml namespace hierarchy. It begins with basic background information on XML: how schemas are used to validate XML data and how style sheets are used to alter the way XML is displayed. The remaining sections present the .NET classes that are used to read, write, update, and search XML documents. If you are unfamiliar with .NET XML, you may surprised how quickly you become comfortable with reading and searching XML data. Extracting information from even a complex XML structure is refreshingly easy with the XPath query language and far less tedious than the original search techniques that required traversing each node of an XML tree. In many ways, it is now as easy to work with XML as it is to work with relational data. |
< Day Day Up > |