So here's the XML document:
<Ticket>
<Tickets>
<Destination>America</Destination>
<Destination>Italy</Destination>
<Destination>China</Destination>
</Tickets>
</Ticket>
In my exercises, it was pretty easy to find out what the destination was, you just make a string like
string xmlString = "Tickets/Ticket/*"
and run it like so...
But now...
How would I find the price and location of this:
<Ticket>
<Tickets>
<Destination location ="America">520</Destination>
<Destination location ="Italy">420</Destination>
<Destination location ="China">320</Destination>
</Tickets>
</Ticket>
Finding the price is easy, same as above (first example)... But how do I find what the location is inside that destination tag?
My college gave me exercises like the first example, easy... But when I got to my exam it was similar to the 2nd example... But I don't know what to do? My exam is long done now, so this isn't "cheating" or anything, I'm just curious... Please help? :)
PS: I'm using Visual Studio 2013 Ultimate and coding using C# and using console application, not windows forms... Well, I could use forms but ya... Console is quicker...