Expand my Community achievements bar.

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

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