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
Post a Comment