html - How can i parse this xml in javascript? -
i need parse in javascript xml received rest webservice, format below, , put information in grid show on web page. few examples, but, format of xml not typical... can me please? need point start....
many thanks!
<root tablename="center"> <row> <row_attribute name="cod">1100</row_attribute> <row_attribute name="nom">name1</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>
you can use jquery.parsexml this. uses underlying browser xml parser , gives object can searched using jquery methods.
Comments
Post a Comment