Model structured documents with elements, attributes, namespaces, schemas, parsing, and transformations.
Lessons
Choose between XML and JSON for data exchange.
XML vs JSON is easiest to learn by reading the example, changing it, and observing the result.
<!-- XML -->
<lesson level="beginner">
<title>XML Basics</title>
<minutes>30</minutes>
</lesson>
/* Equivalent JSON */
{
"lesson": {
"level": "beginner",
"title": "XML Basics",
"minutes": 30
}
}Practice the XML vs JSON example in a small scratch file, then explain what changed and why.