AnsweredAssumed Answered

XPath question

Question asked by ananius on May 9, 2006
Latest reply on May 9, 2006 by ananius
Hi,

Can anybody say why this query doesn't find anything:

//xx:someDocument[/someNode/@xx:text='DOCUMENT_TITLE']

but this does:

//xx:someDocument/someNode[@xx:text='DOCUMENT_TITLE']/..

The reason why I need the upper kind of syntax is because actually I need to find xx:someDocuments based on multiple child node conditions. So I need to do something like this in the end, but even the simpler case doesn't work (upper example, no errors, it just doesn't find anything):

//xx:someDocument[/someNode/@xx:text='?'][/someOtherNode/@xx:number=?]

Outcomes