Click to return to the XML (Extensible Markup Language) home page    
Lesson 1     Lesson 3     Lesson List    
Web Workshop  |  XML (Extensible Markup Language)

XML Tutorial
Lesson 2: Authoring XML Documents


What is an XML document?

A basic XML document is simply an XML element that can, but might not include nested XML elements.

For example, the XML element "books" below is a valid XML document.

<books>
  <book isbn="0345374827">
    <title>The Great Shark Hunt</title>
    <author>Hunter S. Thompson</author>
  </book>
</books>

Authoring guidelines

There are several key things to remember when constructing a basic XML document:

Try it!

In the text box below, create an XML document that contains both element and attribute nodes. Click the Well-formed? button to see whether your XML document conforms to the XML specification.



Back to topBack to top

Did you find this material useful? Gripes? Compliments? Suggestions for other articles? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.