Author XML Documents


This topic provides basic information about XML documents.

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

For example, the XML <books> element is a valid XML document:

  <book isbn="0345374827">
    <title>Maeve Ascendant</title>
    <author>Eva Corets</author>

There are some things to remember when constructing a basic XML document.

  • All elements must have an end tag.

  • All elements must be cleanly nested (overlapping elements are not allowed).

  • All attribute values must be enclosed in quotation marks.

  • Each document must have a unique first element, the root node.