The XML Document
The XML below shows a portion of the example purchase order taken from section 3 in XML Schema Part 0: Primer. This XML document conforms to the namespace qualification rules defined in the previous schema. Note that all elements in the document are in the namespace "http://www.example.com/PO1". The top-level element apo:purchaseOrder declares that the prefix apo corresponds to the namespace "http://www.example.com/PO1". Each element in the document has the prefix apo, therefore each element is within the namespace "http://www.example.com/PO1".
<?xml version="1.0"?>
<apo:purchaseOrder xmlns:apo="http://www.example.com/PO1"
orderDate="1999-10-20">
<apo:shipTo country="US">
<apo:name>Alice Smith</apo:name>
<apo:street>123 Maple Street</apo:street>
<apo:city>Mill Valley</apo:city>
<apo:state>CA</apo:state>
<apo:zip>90952</apo:zip>
</apo:shipTo>
...
</apo:purchaseOrder>