spot/remove repeated elements in XML documet

Manuel Souto Pico <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
Hi again,

My apologies for not changing the subject of my last mail according to 
its contents. This is the same mail with updated subject.

I have a long XML document in which several branches have repeated 
contents, for example:

<document>
...
    <entry ="10">
       <Eng>house</Eng>
       <Spa>casa</Spa>
    </entry>
    <entry ="11">
       <Eng>shoe</Eng>
       <Spa>zapato</Spa>
    </entry>
    <entry ="12">
       <Eng>house</Eng>
       <Spa>casa</Spa>
    </entry>
...
</document>

where as you can see, entries 10 and 12 have identical contents.

My question is: Is there any easy way to spot and/or remove repeated 
elements? I suppose it could be done with XSL or a perl module for XML...

Any help would be very appreciated.

Manuel Souto Pico
Terminólogo / Responsable de servicio técnico

*STAR Servicios Lingüísticos, SL*
C. Sardenya, 195-197 (baixos)
E-08013 Barcelona
Tel. +34 932 440 881
Fax: +34 932 471 273

[email protected] <mailto:[email protected]>
http://www.star-spain.com

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.