XML NamespacesXML Namespace is used to avoid element name conflict in XML document. XML Namespace DeclarationAn XML namespace is declared using the reserved XML attribute. This attribute name must be started with "xmlns". Let's see the XML namespace syntax: Here, namespace starts with keyword "xmlns". The word name is a namespace prefix. The URL is a namespace identifier. Let's see the example of XML file. Namespace Prefix: cont Namespace Identifier: http://sssit.org/contact-us It specifies that the element name and attribute names with cont prefix belongs to http://sssit.org/contact-us name space. In XML, elements name are defined by the developer so there is a chance to conflict in name of the elements. To avoid these types of confliction we use XML Namespaces. We can say that XML Namespaces provide a method to avoid element name conflict. Generally these conflict occurs when we try to mix XML documents from different XML application. Let's take an example with two tables: Table1: Table2: This table carries information about a computer table. If you add these both XML fragments together, there would be a name conflict because both have How to get rid of name conflict?1) By Using a PrefixYou can easily avoid the XML namespace by using a name prefix. Note: In this example, you will get no conflict because both the tables have specific names.2) By Using xmlns AttributeYou can use xmlns attribute to define namespace with the following syntax: Let's see the example: In the above example, the |