Quantcast
Channel: XML, System.Xml, MSXML and XmlLite forum
Viewing all articles
Browse latest Browse all 935

How to get value matching node text using Xpath Xdocument in C# NET?

$
0
0

Hi All,

How do i get matching node values using xpath?

Below is scenario:

<xref rid="ch1" ref-type="fig">testing data</xref>

<xref rid="ch2" ref-type="fig">test</xref>

<xref rid="ch3" ref-type="fig">abc</xref>

<xref rid="ch4" ref-type="fig">tester </xref>

Output: 

<xref rid="ch1" ref-type="fig">testing data</xref>

<xref rid="ch2" ref-type="fig">test</xref>

<xref rid="ch4" ref-type="fig">tester </xref>

I want to get only those xref node whose data is start with test using Xpath..

Thanks in Advance!!

Vikas



Viewing all articles
Browse latest Browse all 935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>