Page 1 of 1

query xml data for node value

Posted: Mon Jan 14, 2008 4:22 pm
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?

Re: query xml data for node value

Posted: Mon Jan 14, 2008 10:01 pm
by Ambush Commander
Yes, use text() in a predicate.

Re: query xml data for node value

Posted: Wed Jan 16, 2008 3:30 pm
by joel_f
thanks, it worked!