How to display/print name value in XML file

I have a page in that queries an XML file and shows the data. It shows the data I need in the nodes, but I want to print the specific values deeper in the node… for instance I want to be able to print the value - PARIS or country France in the XML example below. with the line below I can only print the first element but I am not sure how to print the other values,Any advise on how this can be achieved?
Note the rest of the code works and shows the other elements in the upper nodes, It s just I want to know how to display the name values or specific name value in the sample xml file below

Asp,net Line Code:

CityValue = node.SelectSingleNode("ns2:fields/ns2:field", nsManager).InnerText, _



<ns2:field name="currency">EUR</ns2:field>

<ns2:field name="starRating">3 Star</ns2:field>

<ns2:field name="Country">FRANCE</ns2:field>

<ns2:field name="longitude">2.344952</ns2:field>

<ns2:field name="latitude">48.872646</ns2:field>

<ns2:field name="hotelID">6950</ns2:field>

<ns2:field name="city">PARIS</ns2:field>

<ns2:field name="zipcode">75009</ns2:field>


This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.