Query within an xml document

V

vinuhyd

I have an XML document in my asp.net application containing country
information
eg
<Country>
<CNo>1</CNo>
<Country>Afghanistan</Country>
<Nationality>Afghan</Nationality>
<ISDCode>93</ISDCode>
<Continent>Asia</Continent>
</Country>
<Country>
<CNo>2</CNo>
<Country>Albania</Country>
<Nationality>Albanian</Nationality>
<ISDCode>355</ISDCode>
<Continent>Europe</Continent>
</Country>
<Country>
<CNo>3</CNo>
<Country>Algeria</Country>
<Nationality>Algerian</Nationality>
<ISDCode>213</ISDCode>
<Continent>Africa</Continent>
</Country>

When a country is selected from a dropdown list, I want to be able to
run through the xml document and pick out the corresponding continent
only. What is the best way to do this?

How can I do it using XMLTextReader....

Thanks, Vinu
 
P

Peter Flynn

vinuhyd wrote:
[...]
How can I do it using XMLTextReader....

You will get a better response if you post this in a Microsoft
newsgroup like microsoft.public.dotnet.xml instead, as it relates
to their software rather than directly to XML.

///Peter
 

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top