## Chapter Summary

1. XML allows you to encode complex data, independent from any programming language, in a form that a recipient can parse easily, and that is resilient to change
2. An XML data set is called a document. It starts out with a header and contains elements and text. An element can contain text, subelements, or both (mixed content). For data descriptions, avoid mixed content. Elements can have attributes. Use attributes to describe how to interpret the element content
3. A parser is a program that reads a document, checks whether it is syntactically correct, and takes some action as it processes the document. There are two kinds of XML parsers. SAX fires events as it analyzes a document. DOM builds a document tree

prev |top |next