XML-XPath - xpath predicates with whitespaces

Posted on Tue Mar 20 22:19:08 2007 by fullwindsor
xpath predicates with whitespaces
hello all,

i'm having a problem with xpath predicates including whitespaces. i have this query:

/html/body/table[caption/descendant::*['Some text']]

i expect it to return only one object, as i know that the xml i'm parsing has the string 'Some text' only once. however, i get 2 objects: the right one, and another one, that only matches one of the words of the 'Some text' string.

anybody knows whether this is a feature or a bug?
also, is there any way to match the whole predicate string as one?


greetings,
full
Write a response