Dear MarkLogic XQuery players,
     I need a kind help. I want to search for a node(<aa>) in which the complex 
node of my interest(<ee>) should not be there.
for eg:The sample xml structure:<root>    <aa1>        <bb>            <cc>     
           <dd>                    <ee>                        <ff>ff</ff>      
              </ee>                </dd>                <gg>gg</gg>            
</cc>        </bb>    </aa1>    <aa2>        <bb>            <cc>               
 <gg>gg</gg>            </cc>        </bb>    </aa2>    <aa3>        <bb>       
     <cc>                <dd>                    <ff>ff</ff>                
</dd>                <gg>gg</gg>            </cc>        </bb>    </aa3></root>
The XQuery I constructed was:cts:search(//root,     
cts:element-query(xs:QName("aa"),     cts:element-query(xs:QName("bb"),     
cts:element-query(xs:QName("cc"),     cts:element-query(xs:QName("dd"),        
cts:not-query(             cts:element-query(xs:QName("ee"), "*")        )))))
I expected aa3 and aa2, but i got only aa3.
 Then I tried like this:  cts:search(//root,       
cts:element-query(xs:QName("aa"),       cts:element-query(xs:QName("bb"),       
cts:element-query(xs:QName("cc"),          cts:not-query(              
cts:element-query(xs:QName("dd"),              
cts:element-query(xs:QName("ee"), "*")          )))))I got only aa2 for the 
above query.


Can any one help me to find both aa2 and aa3....?
Any feedback from the xquery players is greatly appreciated.
regards,Deepak M.


      Get perfect Email ID for your Resume. Grab now 
http://in.promos.yahoo.com/address
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to