Hi all,

I have xmls look like below:

<root>
  <a>
    <b>any text</b>
    <c>
      <b>any text</b>
    </c>
  </a>
</root>

Now, I want to search /root[a/b = 'value'] by cts constructors, for example:

cts:element-query(xs:QName("a"),
  cts:element-value-query(xs:QName("b"), $value)
)

But this searches all the b element under /root/a, like /root/a/c/b, so I
want to ask if there is any way to ignore the /root/a/c/b using cts
constructors? Because I just want to check the /root/a/b. Or I have to use
XPath like /root[a/b = 'value']? If so, how is the performance between cts
constructors and XPath?

Thanks,
John
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to