Xpath expression

Please support our XML, XSLT and XPATH advertiser: Intel Parallel Studio Home
Reply

Join Date: Oct 2009
Posts: 1
Reputation: john2029 is an unknown quantity at this point 
Solved Threads: 0
john2029 john2029 is offline Offline
Newbie Poster

Xpath expression

 
0
  #1
Oct 12th, 2009
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 95
Reputation: fpmurphy is an unknown quantity at this point 
Solved Threads: 5
fpmurphy fpmurphy is offline Offline
Junior Poster in Training
 
0
  #2
Oct 18th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC