This document provides an introduction to XML, including:
- XML was created to structure and exchange data over the web, providing more meaning than HTML. It can be formatted separately using XSL.
- Data can be structured, semi-structured, or unstructured. Semi-structured data like data collected ad-hoc has some structure but not a fixed schema.
- XML documents must be well-formed following syntactic rules. Valid XML also conforms to definitions in a DTD or schema.
- XML querying uses XPath to return element nodes matching patterns. More complex queries use XQuery with clauses like FOR, LET, WHERE, and RETURN.