Model structured documents with elements, attributes, namespaces, schemas, parsing, and transformations.
Lessons
Decide when to model data as an element or an attribute.
Elements vs Attributes is easiest to learn by reading the example, changing it, and observing the result.
<!-- Same data, two designs -->
<!-- Attribute style: metadata on the element -->
<book isbn="978-1" pages="320">Clean XML</book>
<!-- Element style: child elements for each value -->
<book>
<isbn>978-1</isbn>
<pages>320</pages>
<title>Clean XML</title>
</book>Practice the Elements vs Attributes example in a small scratch file, then explain what changed and why.