Here is the xml I am trying to access:
<resourceStrings>
<globalStrings>
<string>
<key>RptTitle1</key>
<value>Title1</value>
</string>
<string>
<key>RptTitle2</key>
<value>ReportTitle2</value>
</string>
<string>
<key>RptTitle3</key>
<value>ReportTitle3</value>
</string>
</globalStrings>
</resourceStrings>
How would I use linq to xml to search for key of RptTitle1 and return the value of the value node?
Like this:
This code will find the first
<string>element that has a<key>element with a value equal toRptTitle1, then get that element’s<value>element.