What is Namespace in XML
Documents can become quite complex. They can consist of your own XML as well as XML from outside sources. Element and attribute names can start overlapping , which then makes the names ambiguous. How do you determine whether the name comes from your data or from an outside source? Looking at the document , you world have to guess what the element and attributes mean depending on the context.Unfortunately, applications processing the XML typically don’t understand context, so the document would no longer have the correct meaning . Namespaces solve this potential problem.
Namespaces are collections of names identified by URLs. They are not part of the XML specification but have their own specification that applies to XML. Through the use of namespages,names within a document are able to retain their original meanings even when combined with another document that contains some of the same names with completely different meanings.