
In XML, you can assign element names and attribute names to a namespace in order to differentiate them from other elements and attributes with the same name, which come from other XML documents. Namespaces are identified in XML documents by a URI (Unified Resource Identifier) and are used in the XML document by means of a prefix.
The attribute xmlns:xsd="http://www.w3.org/2001/XMLSchema" identifies the default namespace for XML schema in an XML document. The attribute xmlns assigns the prefix xsd to the URI http://www.w3.org/2001/XMLSchema. This prefix can also serve as a qualifier for tags in the document.
Namespaces in the Enterprise Services Builder
Although repository namespaces are assigned to the software component version in the navigation tree, the software component version does not affect the uniqueness of the object names.
The length of namespaces in the ES Builder is restricted to 255 characters.
Other Namespaces
Basically, a namespace in XML can be any constant value. Note the following two conventions:
Usual Conventions for Repository and XML Namespaces
| Prefix | Use |
|---|---|
|
http:// |
When you specify an HTTP address as a namespace this does not mean that you can access additional information about the namespace from this address (in some cases an XML schema definition is hidden behind the address). The HTTP address used merely ensures that the name of the namespace is unique. SAP namespaces adhere to the standard http://sap.com/xi/<Name>. |
|
urn: |
Namespaces with this prefix have no value in the sense that they are not connected with a Web page in the Internet. |
It is assumed that conventions ensure that namespaces are unique.
For further information about namespaces, see www.w3.org/TR/REC-xml-names/.