xquery simple example no worky...

220 views
Skip to first unread message

miclc...@estrellamountain.edu

unread,
Jun 9, 2014, 9:05:21 PM6/9/14
to xpath...@googlegroups.com
Here is my XML:

<bookstore>
<book category="COOKING">
<title lang="en">Everyday Italian</title>
<author>Giada De Laurentiis</author>
<year>2005</year>
<price>30.00</price>
</book>
<book category="CHILDREN">
<title lang="en">Harry Potter</title>
<author>J K. Rowling</author>
<year>2005</year>
<price>29.99</price>
</book>
<book category="WEB">
<title lang="en">XQuery Kick Start</title>
<author>James McGovern</author>
<author>Per Bothner</author>
<author>Kurt Cagle</author>
<author>James Linn</author>
<author>Vaidyanathan Nagarajan</author>
<year>2003</year>
<price>49.99</price>
</book>
<book category="WEB">
<title lang="en">Learning XML</title>
<author>Erik T. Ray</author>
<year>2003</year>
<price>39.95</price>
</book>
</bookstore>

Here is my xquery:

doc(xml)/bookstore/book/title[price<30]

Anatoliy Artemenko

unread,
Jun 10, 2014, 1:37:12 AM6/10/14
to xpath...@googlegroups.com
pls try /bookstore/book[price<30]/title


--
You received this message because you are subscribed to the Google Groups "XPath Tester help center" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xpathtester...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages