Hi,

I want to "merge" two (or more) xml files.
For example:

<root>
        <person name="X">
                <age value="20"/>
                <phone value="0000000"/>
                <phone value="1111111"/>
        </person>
        <person name="Y">
                <age value="15"/>
        </person>
</root>

And

<root>
        <person name="X">
                <weight value="150"/>
                <phone value="0000000"/>
                <phone value="2222222"/>
        </person>
        <person name="Z">
                <weight value="100"/>
        </person>
</root>

Would give:

<root>
        <person name="X">
                <age value="20"/>
                <weight value="150"/>
                <phone value="0000000"/>
                <phone value="1111111"/>
                <phone value="2222222"/>
        </person>
        <person name="Y">
                <age value="15"/>
        </person>
        <person name="Z">
                <weight value="100"/>
        </person>
</root>

Something like:
<mergexml out="result.xml">
        <fileset ....../>
</mergexml>
Would be perfect as we would not have to know the "structure" of the xml
files beforehand.

Is there any way/tool to do that easily?
I found http://www.oopsconsultancy.com/software/xmltask.html
<http://www.oopsconsultancy.com/software/xmltask.html> , but I am not sure
how easy it could be with it.

Thank you,

Patrick.




Confidentiality Notice: The information contained in this e-mail message is
intended only for the personal and confidential use of the recipient(s)
named above. If the reader of this message is not the intended recipient or
an agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is strictly
prohibited. If you have received this communication in error, please notify
us immediately by e-mail, and delete the original message. 

Message confidentiel : Les informations contenues dans ce message sont
destinees a un usage personnel et confidentiel du destinataire indique
ci-dessus. Si le lecteur de ce message n'est pas le destinataire prevu, ou
n'est pas une personne en charge de le delivrer au destinataire voulu, vous
etes par la presente informe que vous avez recu ce document par erreur, et
que tout examen, transmission, distribution ou copie de ce message est
totalement interdit. Si vous avez recu cette communication par erreur, nous
vous remercions de bien vouloir nous avertir immediatement par e-mail et de
detruire le message d'origine.

Reply via email to