XML Editor
Sign up for a WebBoard account Sign Up Keyword Search Search More Options... Options
Chat Rooms Chat Help Help News News Log in to WebBoard Log in Not Logged in
Show tree view Topic
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Postnext
marcel van den akerSubject: technical Xpath question
Author: marcel van den aker
Date: 10 Aug 2005 09:20 AM
Dear readers,

I have a technical Xpath question:

I have a XML file (attached) and I want to find the specific element that has both the values: @style="textbook" AND #TEXT="THISNODE"

I am not able to produce this query. I tried several query's but it did not work.

/bookstore/book[@style="textbook"]["THISNODE"] <=does not work

Could you please help me with finding the correct Xpath Syntax.

Many thanks.

Regards,
Marcel van den Aker


Documentbookstore.xml
bookstore.xml

Postnext
Ivan PedruzziSubject: technical Xpath question
Author: Ivan Pedruzzi
Date: 10 Aug 2005 10:59 AM

/bookstore/book[@style = "textbook"]/text()[contains(., 'THISNODE')]

Hope this helps
Ivan Pedruzzi
Stylus Studio team


Posttop
marcel van den akerSubject: technical Xpath question
Author: marcel van den aker
Date: 10 Aug 2005 11:21 AM
Great works.

Thanks.
Marcel

 
Topic Page 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 Go to previous topicPrev TopicGo to next topicNext Topic
Download A Free Trial of Stylus Studio 6 XML Professional Edition Today! Powered by Stylus Studio, the world's leading XML IDE for XML, XSLT, XQuery, XML Schema, DTD, XPath, WSDL, XHTML, SQL/XML, and XML Mapping!  
go

Log In Options

Site Map | Privacy Policy | Terms of Use | Trademarks
Stylus Scoop XML Newsletter:
W3C Member
Stylus Studio® and DataDirect XQuery ™are from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2016 All Rights Reserved.