Hi All,
how to find out distinct nodes in marklogic4.1-2.
here i am providing sample xml data
let $input:=<Actor>
<Person>
<Name>
<CurrentName>
<Given>John</Given>
<Family>Doe</Family>
</CurrentName>
<DisplayName>John C. Doe, M.D.</DisplayName>
</Name>
</Person>
<Person>
<Name>
<CurrentName>
<Given>John</Given>
<Family>Doe</Family>
</CurrentName>
<DisplayName>John C. Doe, M.D.</DisplayName>
</Name>
</Person>
<Person>
<Name>
<CurrentName>
<Given>John</Given>
<Family>Doe</Family>
</CurrentName>
<DisplayName>John C. Doe, M.D.</DisplayName>
</Name>
</Person>
<Person>
<Name>
<CurrentName>
<Given>mike</Given>
<Family>julies</Family>
</CurrentName>
<DisplayName>mike C. julies, M.D.</DisplayName>
</Name>
</Person>
</Actor>
i want to get the output of distinct persons.
required output should be like this .
return "<Actor>
<Person>
<Name>
<CurrentName>
<Given>John</Given>
<Family>Doe</Family>
</CurrentName>
<DisplayName>John C. Doe, M.D.</DisplayName>
</Name>
</Person>
<Person>
<Name>
<CurrentName>
<Given>mike</Given>
<Family>julies</Family>
</CurrentName>
<DisplayName>mike C. julies, M.D.</DisplayName>
</Name>
</Person>
</Actor>"
how i can find distinct nodes(Not distinct values)
Thank you .
Regards,
Ashwini
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general