This XML document carries information in a table:
<h:table xmlns:h="http://www.w3.org/TRhtml4/">
<h:tr>
<h:td>Apples</h:td>
<h:td>Banana</h:td>
</h:tr>
</h:table>
This XML document carries information about a piece of furniture:
<f:table xmlns:f="http://www.makemyhost.com/furniture">
<f:name>African Coffee Table</f:name>
<f:width>80</f:width>
<f:length>120</f:legnth>
</f:table>
Instead of using only prefixes, we have added an xmlns attribute to the <table> tag to give the prefix a qualified name associated with a name space.
0 comments:
Post a Comment