944,181 Members | Top Members by Rank

Ad:
Oct 12th, 2009
0

Xpath expression

Expand Post »
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
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
john2029 is offline Offline
1 posts
since Oct 2009
Oct 18th, 2009
0
Re: Xpath expression
XML, XSLT and XPATH Syntax (Toggle Plain Text)
  1. <xsl:if test="//text()[contains(., 'Sales')]">
  2. <xsl:copy-of select="." />
  3. </xsl:if>
Last edited by fpmurphy; Oct 18th, 2009 at 11:12 am.
Reputation Points: 22
Solved Threads: 11
Junior Poster
fpmurphy is offline Offline
144 posts
since Oct 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: XSLT, XML to word
Next Thread in XML, XSLT and XPATH Forum Timeline: Get all <img> Tags that are siblings?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC