O'Reilly logo

Sams Teach Yourself ADO.NET in 24 Hours by Paul Bertucci, Jason Lefebvre

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What Is XML?

Like HTML, XML is a markup language that can be used to represent complicated data in a hierarchical format. Because XML tags are user-defined, there's no limit to the kind of information you can embed into an XML document. Listing 10.1 shows a sample XML document.

Listing 10.1. A Sample XML Document
<?xml version="1.0">
<customer type="web">
  <firstName>Ian</firstName>
  <lastName>Young</lastName>
  <address>555 Downtown Ln</address>
  <city>Cincinnati</city>
  <zip>45023</zip>
</customer>

In this case, the XML document in Listing 10.1 describes a customer of a fictitious Web site. The data and attributes were made up, yet if you were to run an XML parser on Listing 10.1, it would correctly identify each attribute and piece of data.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required