<root>
<A testId ="test">
<B id="ABC">one
</B>
<B id="ZYZ">two
</B>
<B id="QWE">three
</B>
<B>four
</B>
</A>
</root>
Need to extract attribute value of testId for the node <A>.I'm using following c# code but, its throwing null exception.
doc.XPathSelectElement("//A/@testId")
Any help appreciated!