News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

Solving Name Conflicts Using a Prefix

Started by ben2ong2, October 05, 2006, 05:31:14 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ben2ong2

This XML document carries information in a table:
<h:table>   <h:tr>   <h:td>Apples</h:td>   <h:td>Bananas</h:td>   </h:tr></h:table>
This XML document carries information about a piece of furniture:
<f:table>   <f:name>African Coffee Table</f:name>   <f:width>80</f:width>   <f:length>120</f:length></f:table>
Now there will be no name conflict because the two documents use a different name for their <table> element (<h:table> and <f:table>).
By using a prefix, we have created two different types of <table> elements.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login