Wednesday, 7 August 2013

How can i parse this xml in javascript?

How can i parse this xml in javascript?

I need to parse in javascript an xml that returns a webservice (REST)
,with this format and put the information in a grid to show it in a
webpage. I look for a few examples, but, this format of xml is not the
tipical... Can someone help me please? Only need a point to start....
Many thanks!
<root tablename="center">
<row>
<row_attribute name="cod">1100< /row_attribute>
<row_attribute name="nom">n`enter code here`ame1< /row_attribute
<row_attribute name="cod2">TGN< /row_attribute>
</row>
<row>
<row_attribute name="cod">1200</row_attribute>
<row_attribute name="nom">name2</row_attribute
<row_attribute name="cod2">TGT</row_attribute>
</row>
</root>

No comments:

Post a Comment