Team Fly |
Page 475
IT'S SAID THAT .NET rests on XML, meaning that in the .NET world, XML is the data storage and transmission technology of choice. The XML classes built into the .NET Framework are gathered into these primary categories:
XmlDocument for editing XML (part of Microsoft's implementation of DOM)
XmlReader for reading and searching (part of Microsoft's SAX)
XmlWriter for saving
XmlSchema creating and managing XSD schemas
XmlValidatingReader validation
XmlTransform executing XSL transformations
XpathNavigator applying Xpath queries
There are several auxiliary technologies that expand and assist XML. For instance, XML, like HTML, can use Cascading Style Sheets, or the even more advanced styles technology called XSL, which can reorder, or add and delete, tags and attributes.
XML rests on two main APIs:
DOM (Document Object Model)
SAX (Simple API for XML)
Each has its uses. DOM needs an entire XML document to sit in memory while DOM processes it (DOM is therefore capable of random-access processing). DOM is preferred for editing XML. SAX works serially on an XML stream, and is preferred for reading or searching.
This chapter covers a variety of XML tools and features that every .NET programmer needs to understand, exploring the first four of the primary categories listed at the opening of this chapter.
Team Fly |