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

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
Adobe Summit 2023 | Complete list of AEM Sessions & Labs
SOLVED

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

Avatar

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

Avatar

Correct answer by
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

0 Replies

Avatar

Correct answer by
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...

Avatar

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.