I have a complex structure xml from which I need to read some element value. My xml is somewhat like this:
<plist version="1.0">
<dict>
<key>XYZ</key>
<dict>
<key>KEYVALUE1</key>
<dict>
<key>A</key>
<date>AVALUE1</date>
<key>B</key>
<string>BVALUE1</string>
</dict>
<key>KEYVALUE2</key>
<dict>
<key>A</key>
<date>AVALUE2</date>
<key>B</key>
<string>BVALUE2</string>
<key>C</key>
<string>CVALUE2</string>
</dict>
</dict>
</dict>
</plist>
What I need is: search for a dict with KEYVALUE2, and wherever I get it, pick BVALUE2 out of it (you can replace 2 with whatever number, I have just included 2 nodes for brevity).
I am newbie for xml programming and all my attempts to try out MS documentation have only confused me more. Sometimes I find a xmlreader example which didn't quite serve my purpose, and other time I got LINQ example which confused me because of its structure. Please help!