Model structured documents with elements, attributes, namespaces, schemas, parsing, and transformations.
Lessons
Bind prefixes to namespace URIs with xmlns.
Declaring Namespaces is easiest to learn by reading the example, changing it, and observing the result.
<?xml version="1.0" encoding="UTF-8"?>
<root xmlns:book="https://example.com/book"
xmlns:cd="https://example.com/cd">
<book:item>
<book:title>Learning XML</book:title>
</book:item>
<cd:item>
<cd:title>Greatest Hits</cd:title> <!-- no name collision -->
</cd:item>
</root>Practice the Declaring Namespaces example in a small scratch file, then explain what changed and why.