If by "unique nodes" you mean "distinct nodes" there is a functx that does this:
http://www.xqueryfunctions.com/xq/functx_distinct-nodes.html - Dan On Wed, Mar 6, 2013 at 4:58 PM, Abhishek53 S <[email protected]> wrote: > Hi Folks, > > Can someone please help me in getting list of unique nodes from below XML > > > < > tests> > > < > test> > > < > id>1</id> > > < > desc>xx</desc> > > </ > test> > > < > test> > > < > id>2</id> > > < > desc>yy</desc> > > </ > test> > > < > test> > > < > id>1</id> > > < > desc>xx</desc> > > </ > test> > > </ > tests> > I need the output like > > > < > tests> > > < > test> > > < > id>1</id> > > < > desc>xx</desc> > > </ > test> > > < > test> > > < > id>2</id> > > < > desc>yy</desc> > > </ > test> > > </tests> > > Thanks in advance!! > Abhishek Srivastav > Tata Consultancy Services > Cell:- +91-9883389968 > Mailto: [email protected] > Website: http://www.tcs.com > ____________________________________________ > Experience certainty. IT Services > Business Solutions > Outsourcing > ____________________________________________ > > =====-----=====-----===== > Notice: The information contained in this e-mail > message and/or attachments to it may contain > confidential or privileged information. If you are > not the intended recipient, any dissemination, use, > review, distribution, printing or copying of the > information contained in this e-mail message > and/or attachments to it are strictly prohibited. If > you have received this communication in error, > please notify us by reply e-mail or telephone and > immediately and permanently delete the message > and any attachments. Thank you > > > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general > > -- Dan McCreary NoSQL Evangelist office: (952) 931-9198 cell: (612) 986-1552
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
