i have an xml file as below,
<resource classname="Quote">
<field name="name">USD/VND</field>
<field name="price">21175.000000</field>
<field name="symbol">VND=X</field>
<field name="ts">1409397790</field>
<field name="type">currency</field>
<field name="utctime">2014-08-30T11:23:10+0000</field>
<field name="volume">0</field>
</resource>
<resource classname="Quote">
<field name="name">USD/BOB</field>
<field name="price">6.910000</field>
<field name="symbol">BOB=X</field>
<field name="ts">1409397790</field>
<field name="type">currency</field>
<field name="utctime">2014-08-30T11:23:10+0000</field>
<field name="volume">0</field>
</resource>
how can i use c# to search through all the resources, check the Attribute "name" and if the inner text was okay for what I look for,then only get the inner text of the "price". for example i look for USD/BOB, when find it, only get the price.
thanks in advance.
No comments:
Post a Comment