Example: XML Element Names
In XML, element names can be originated and changed to reflect the type of information contained in the document. This level of flexibility may cause problems if separate documents encode different kinds of information, but use the same identifiers for the element names.
For example, the following sample document defines the basic semantics for a "person" document and a "book" document. Both of these use a "title" element, but the meaning is not the same:
For an application to allow a user to correctly query for and retrieve the "title" element, it must provide a way to unambiguously specify which title element is being requested. Failure to do so would give rise to a naming collision on the title element (as well as any other elements that shared this unintended similarity).
In the preceding example, there is enough information in the structure of the document itself (which is specified by the "root" element) to provide a means of unambiguously resolving element names.
For example, using XPath:
//root/person/title ;; the formal title for a person //root/book/title ;; the title of a bookRead more about this topic: Naming Collision
Famous quotes containing the words element and/or names:
“Out of the element of participation follows the certainty of faith; out of the element of separation follows the doubt in faith. And each is essential for the nature of faith. Sometimes certainty conquers doubt, but it cannot eliminate doubt. The conquered of today may become the conqueror of tomorrow. Sometimes doubt conquers faith, but it still contains faith. Otherwise it would be indifference.”
—Paul Tillich (18861965)
“The pangs of conscience, where are the pangs of conscience? Orestes and Clytemnestra, Reinhold doesnt even know the names of those fine folk. He simply hopes, heartily and sincerely, that Franz is dead as a doornail and wont be found.”
—Alfred Döblin (18781957)