Example: XML element names Naming collision



for application allow user correctly query , retrieve title element, must provide way unambiguously specify title element being requested. failure give rise naming collision on title element (as other elements shared unintended similarity).


in preceding example, there enough information in structure of document (which specified root element) provide means of unambiguously resolving element names.


for example, using xpath:



//root/person/title ;; formal title person
//root/book/title ;; title of book





Comments

Popular posts from this blog

The Elwell-Parker Company Thomas Parker (inventor)

Lists Taizi

List of heads of mission List of ambassadors of the United Kingdom to Haiti