How do I use XPath to retrieve a single named attribute value

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
Hello,<br/><br/>How do I set up an XPath to retrieve a particular nested, named attribute. The following will correctly return the entire list, <span style="color:#a31515;font-size:x-small <span style="color:#a31515;font-size:x-small <font size=2 color="#a31515 <font size=2 color="#a31515
//ns:Body/*//@Name
</font></font><font size=2 color="#a31515
 
</font>
<br/>but I need a specific name. I have tried multiple ways but anything based off of the above (such as @Name=MyName) with SelectSingleNode returns nothing. Thanks in advance for any ideas and/or suggestions!

View the full article
 
Back
Top