SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : XML Technologies :

Previous DiscussionNext Discussion
 XPath Query Problem
For ex: i want to get "book1" that has both categoryname='Data' and categoryname='XML'. Not just one of them. i tried following XPath queries but first one returns all the books.
The second does not return anything because @categoryname cannot be 'Data' and 'XML' at the same time.
How can i query this?

/books/book/related[@categoryname='Data' or @categoryname='XML']/..
/books/book/related[@categoryname='Data' and @categoryname='XML']/..












Started By mavilym on Aug 15, 2006 at 3:05:35 PM

7 Response(s) | Reply

View All Replies | Goto Page: 1
mavilym on Aug 16, 2006 at 5:11:00 AM

"//books/book[related[@categoryname='Data'] and related[@categoryname='XML']]"

solved my problem. thanks.


View All Replies | Goto Page: 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2000 InsideDHTML.com, LLC. All rights reserved.