XML Namespaces

An XML namespace enables you to define identifiers that can provide a unique name to each element in an XML document.

The XML namespace eliminates any potential element name conflict. For example, you might create a name element in an XML document that contains the names of an organization's business partners. The name element contains partnername and organizationname as subelements.

You might also create a separate XML document that contains a name element to specify the names of the customers. This name element further contains customername and address as subelements.

Combining these two XML documents causes an element name conflict. This is because both documents contain a name element with different content and definition.

<!-- Business partner information -->
<name>
    <partnername> ABC </partnername>
    <organizationname> XYZ </organizationname>
</name>

<!-- Customer information -->
<name>
    <customername> EFG </customername>
    <address> HIJ </address>
</name>

Click the Next button to continue.