The namespace mechanism is considered complicated, but wrongly so, because it is based on a simple principle to clearly allocate names that are used in a XML document to a particular XML vocabulary. This vocabulary forms the "namespace," which includes the names that refer to it.
In an XML document, names are used for elements and attributes. The name of an element is placed between the angle brackets of the tags; the attribute name is placed within the tags in front of an equal sign. Consider the following example:
<?xml version="1.0"?> <feed version="0.4> <head></head> </feed>
channel are the names of two elements. (It is not correct to talk about a
head tag, if the whole ...