Hi Priya,
You can use this query,,

cts:uris("",(),cts:not-query(cts:element-query(xs:QName('id'),cts:and-query(()))))

Thanks,
Abhinav

From: [email protected] 
[mailto:[email protected]] On Behalf Of priya dharshni
Sent: Wednesday, September 10, 2014 2:12 PM
To: general; [email protected]
Subject: [MarkLogic Dev General] Identify the uris which does not have 
particular element.


Hi ,


  I want to identify the uris which does not have the particular element.Say, i 
want to get uris which does not have "id' element.

 xml in db :
  <employee>
  <name>test</name>
  <id>123</id>
  </employee>

  cts:uris(''",
                          (),


                          
cts:not-query(cts:element-value-query(xs:QName("id"),"*"))
            )
The above query pulls all the uris with and without "id" element.Please let me 
know how to fix this.

Regards,
Priya.
This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient(s), please reply to the sender and 
destroy all copies of the original message. Any unauthorized review, use, 
disclosure, dissemination, forwarding, printing or copying of this email, 
and/or any action taken in reliance on the contents of this e-mail is strictly 
prohibited and may be unlawful. Where permitted by applicable law, this e-mail 
and other e-mail communications sent to and from Cognizant e-mail addresses may 
be monitored.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to