O'Reilly logo

XML Pocket Consultant by William R. Stanek

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

Chapter 2. XML Document Structure

XML documents, like HTML documents, contain text and can be written using any text editor or word processor, such as Microsoft Notepad. For ease of reference, XML documents normally are saved with the .xml extension. The .xml extension ensures that the document is easily recognized as containing XML and that applications, such as Microsoft Internet Explorer, view the document as such.

XML documents are built using text content marked up with tags. For a document describing items in an inventory, these tags could be <item>, <item_number>, <item_name>, and <item_description>. In addition to tags, XML documents can contain other types of markup, including attributes, processing instructions, entity references, comments, ...

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