Posted by raphit42 on 11/28/07 04:22
On Nov 27, 10:04 pm, Pradeep <juneja.prad...@gmail.com> wrote:
> 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>
> <NAME> Item1 </ITEM>
> <PRICE> 500 </PRICE>
> <QTY> 10 </QTY>
> </ITEM>
> <ITEM>
> <NAME> Item2 </ITEM>
> <PRICE> 600 </PRICE>
> <QTY> 20 </QTY>
> </ITEM>
> <ITEM>
> <NAME> Item3 </ITEM>
> <PRICE> 700 </PRICE>
> <QTY> 25 </QTY>
> </ITEM>
> <ITEM>
> <NAME> Item4 </ITEM>
> <PRICE> 900 </PRICE>
> <QTY> 90 </QTY>
> </ITEM>
> </ITEMLIST>
>
> and the output which I want is
>
> ------------------------
> | | PRICE | QTY |
> ------------------------
> Item1 | 500 | 10 |
> ------------------------
> Item1 | 600 | 20 |
> ------------------------
> Item1 | 700 | 25 |
> ------------------------
> Item1 | 900 | 90 |
> ------------------------
yea, i want to know that too.
www.2learnknowledge.com
[Back to original message]
|