IT-info

XML

Diverse

https://www.w3schools.com/xml/
https://www.tutorialspoint.com/xml/index.htm

https://www.tutorialspoint.com/xml/xml_namespaces.htm

Namespace Declaration

The xmlns attribute specifies the xml namespace for a document.
A Namespace is declared using reserved attributes. Such an attribute name must either be xmlns or begin with xmlns: shown as below −

<element xmlns:name = "URL">

Syntax

The Namespace starts with the keyword xmlns.

The word name is the Namespace prefix.

The URL is the Namespace identifier.

Namespace affects only a limited area in the document. An element containing the declaration and all of its descendants are in the scope of the Namespace. Following is a simple example of XML Namespace −

Example:

<?xml version = "1.0" encoding = "UTF-8"?>
<cont:contact xmlns:cont = "www.tutorialspoint.com/profile">
   <cont:name>Tanmay Patil</cont:name>
   <cont:company>TutorialsPoint</cont:company>
   <cont:phone>(011) 123-4567</cont:phone>
</cont:contact>

Here, the Namespace prefix is cont, and the Namespace identifier (URI) as www.tutorialspoint.com/profile. This means, the element names and attribute names with the cont prefix (including the contact element), all belong to the www.tutorialspoint.com/profile namespace.

https://www.w3.org/standards/xml/
Extensible Markup Language (XML)
Extensible Markup Language (XML) 1.0 (Fifth Edition)
Extensible Markup Language (XML) 1.1 (Second Edition)
XML Core Working Group Public Page