Default Namespaces

A default namespace is used by an element if the element does not have a namespace prefix; this default is also used by all child elements of that element if they do not have a namespace prefix. The declaration for a default namespace looks like this:

<elementName xmlns='URL'>

Our earlier example could be rewritten using default namespaces as follows: