Xml - Namespace

About

namespace in XML for node name.

the target XML namespace provides a naming context for the named type definitions, named model groups, global element declarations and global attribute declarations for a schema vocabulary.

The namespace mechanism defines custom namespaces in which the non-standard elements and attributes are supported.

Xml

XML namespaces are used for providing uniquely named elements and attributes in an XML document. They are defined in a W3C recommendation.

A simple example would be to consider an XML instance that contained references to a customer and an ordered product. Both the customer element and the product element could have a child element named id. References to the id element would therefore be ambiguous; placing them in different namespaces would remove the ambiguity.

A namespace name is a uniform resource identifier (URI) and is declared using the reserved XML pseudo-attribute xmlns or xmlns:prefix.

For example, the following JSF tag library declaration maps the “h:” prefix to the http://java.sun.com/jsf/html namespace:

xmlns:h="http://java.sun.com/jsf/html"

http://java.sun.com/jsf/htmldoesn't represent a web page

Documentation / Reference


Powered by ComboStrap