query xml data for node value

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
joel_f
Forum Newbie
Posts: 2
Joined: Mon Jan 14, 2008 4:18 pm

query xml data for node value

Post by joel_f »

hi~
i was wondering if there is a way to use xquery to find if a node (or nodes) that contain(s) a specific value. i know that i can query off the node name or even attribute but i can't seem to find any reference for querying on the actual value contained in the node. anyone know if this is possible?
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Re: query xml data for node value

Post by Ambush Commander »

Yes, use text() in a predicate.
joel_f
Forum Newbie
Posts: 2
Joined: Mon Jan 14, 2008 4:18 pm

Re: query xml data for node value

Post by joel_f »

thanks, it worked!
Post Reply