What is XML markup for?

11. The rules of the XML Game

  • An XML document represents a (kind of) tree
  • It has a single root and many nodes
  • Each node can be
    • a subtree
    • a single element (possibly bearing some attributes)
    • a string of character data
  • Each element has a name or generic identifier
  • Attribute names are predefined for a given element; values can also be constrained

Up: Contents Previous: 10. XML terminology Next: 12. Representing an XML tree