Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

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

yasuoo
Level 1
Level 1

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

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

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-chil...

View solution in original post

2 Replies
smacdonald2008
Correct answer by
Level 10
Level 10

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-chil...

yasuoo
Level 1
Level 1

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.