Hi All,
I want to retrive element values from Xml Document which contains the string which i am passing.

For example :

I want to retrive all the element values which has word 'Sales' .

How should i write XPath expression ?

Any example will be appriciated.

Thanks

John

<xsl:if test="//text()[contains(., 'Sales')]">
    <xsl:copy-of select="." />
 </xsl:if>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.