You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Mark Harburg <mh...@rome.com> on 2001/12/06 00:27:01 UTC
Grouping elements uniquely
How do I pick out each 'kind' of element from a list containing duplicates?
eg.
--------- RAW XML ---------
<?xml version="1.0"?>
<all>
<one>aa</one>
<one>bb</one>
<one>aa</one>
<one>cc</one>
<one>bb</one>
</all>
------ TRANSFORMED XML -------
<?xml version="1.0"?>
<newAll>
<newOne>aa</newOne>
<newOne>bb</newOne>
<newOne>cc</newOne>
</newAll>
Thanks!
--
_______________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup
1 cent a minute calls anywhere in the U.S.!
http://www.getpennytalk.com/cgi-bin/adforward.cgi?p_key=RG9853KJ&url=http://www.getpennytalk.com