When using CSS to display an XML file as a table, is there a way to
show the element names at the tops of the columns as headers?
For Example :
I have a XML file
<ITEMLIST>
<ITEM>
<NAMEItem1 </ITEM>
<PRICE500 </PRICE>
<QTY10 </QTY>
</ITEM>
<ITEM>
<NAMEItem2 </ITEM>
<PRICE600 </PRICE>
<QTY20 </QTY>
</ITEM>
<ITEM>
<NAMEItem3 </ITEM>
<PRICE700 </PRICE>
<QTY25 </QTY>
</ITEM>
<ITEM>
<NAMEItem4 </ITEM>
<PRICE900 </PRICE>
<QTY90 </QTY>
</ITEM>
</ITEMLIST>
and the output which I want is
------------------------
| | PRICE | QTY |
------------------------
Item1 | 500 | 10 |
------------------------
Item1 | 600 | 20 |
------------------------
Item1 | 700 | 25 |
------------------------
Item1 | 900 | 90 |
------------------------