Chapter 8. XML in ASP.NET


In this chapter

.NET XML Architecture



XmlDocument and XmlNavigator


Writing a Guest Book Application

This chapter covers XML and how to effectively use it in .NET applications. The first thing you need to know why you should use XML. After all, Web applications have been written now for years and no one has had to worry about XML. One of the main reasons you need to consider using XML is because Web applications have now gotten much more complicated, and XML represents data in a new way. Because XML is so good at representing data, writing large enterprise Web applications is a lot easier.

XML adds type and structure to information. This information in the past may have been some sort of HTML data, or some sort of query result from a database. The point is, though, that information can be stored anywhere on the Internet, and XML adds structure to this information. XML also enables data from multiple sources to be aggregated into a single unit of information. This aggregated information will contain XML-specific structure information. For example, a C++ data structure can be represented as the following XML snippet:

C++ Data:

 struct POINT  {      int x;      int y;  } spot = { 20, 40 }; 

XML Data:

 <spot type='POINT'>      <x>20</x>      <y>40</y>  </spot> 

XML is a set of specifications from the World Wide Web consortium (W3C). These specifications are publicly available at Anyone can contribute and comment and implement these standards. Microsoft followed these standards as they developed the .NET XML classes.


Special Edition Using ASP. NET
Special Edition Using ASP.Net
ISBN: 0789725606
EAN: 2147483647
Year: 2002
Pages: 233 © 2008-2017.
If you may any questions please contact us: