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

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -