Text Application Developer's Guide
ContentsOpens a new window
Opens a new window
Page 255 of 321

Direct Parentage Searching

To find all documents that contain the term dog in a B element that is a direct child of a top-level A element:

dog INPATH(A/B)

This query finds the following XML document:

<A><B>My dog is friendly.</B></A>

but does not find:

<C><B>My dog is friendly.</B></C>
Previous PageOpens a new window
Page 255 of 321
Next PageOpens a new window