What JCR query can I use to find nodes which don't have a child node which name is 'XXXX'? | Community
Skip to main content
October 16, 2015
Solved

What JCR query can I use to find nodes which don't have a child node which name is 'XXXX'?

  • October 16, 2015
  • 2 replies
  • 1392 views

I want to find nodes which DON'T have a child node which name is 'XXXX' in CRXDE Lite, Query Tool.  What Xpath or SQL2 queries archive my goal?

- yasuo

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

Here is a stackover flow thread for JCR query that may help -- you can get an idea of how use child nodes (in your case - exclude them). 

http://stackoverflow.com/questions/15137322/jcr-sql2-fulltext-search-in-node-properties-and-all-child-nodes

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
October 16, 2015

Here is a stackover flow thread for JCR query that may help -- you can get an idea of how use child nodes (in your case - exclude them). 

http://stackoverflow.com/questions/15137322/jcr-sql2-fulltext-search-in-node-properties-and-all-child-nodes

yasuooAuthor
October 16, 2015

Specifying "nodes which has a child node which name is "xxx" is easy,  but specifying "nodes which does not have a child node which name is "xxx" is hard for me.