The XML namespace
June 01, 2010 12:40PM
XML namespaces are used for providing uniquely named elements and attributes in an XML document. They are defined in Namespaces in XML, a W3C recommendation. An XML instance may contain element or attribute names from more than one XML vocabulary. If each vocabulary is given a namespace then the ambiguity between identically named elements or attributes can be resolved.

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.

Source: wikipedia.org : custom papers



Edited 1 time(s). Last edit at 06/01/2010 12:41PM by richern.
Sorry, only registered users may post in this forum.

Click here to login