Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Merge/Synchronize XML Files

From: "Rick" <Rick@--------------.--->
To: NULL
Date: 11/3/2006 5:23:00 AM

Why don't you try writing an XSLT transformation that combines all the 
nodes in <test> and then eliminates the duplicates? I think you could either 
combine the two xml documents prior to the transform, or perhaps by 
importing them from within the XSLT.

You can then do an xmlDoc.DocumentElement.Transform...

Rick

"Meelis Lilbok" <meelis.lilbok@d...> wrote in message 
news:uvG8V2z$GHA.2328@T......
> Hi is for synchronizing two xml files any fast solution?
>
> Lets say i have 2 xml files 1.xml and 2.xml
>
> 1.xml contianes
>
> <test>
>    <t id="1">Hello</t>
>    <t id="2">World</t>
>    <t id="3">Good bye!</td>
> </test>
>
> 2.xml containes
> <test>
>    <t id="1">Hello</t>
>    <t id="2">World</t>
> </test>
>
> After synchronizing 2.xml must look likt this
> <test>
>    <t id="1">Hello</t>
>    <t id="2">World</t>
>    <t id="3">Good bye!</td>
> </test>
>
> At the moment i use
>    For Each
>    Next
> and this is too slow, if file containes  about 1000 <t> nodes
>
> Regards;
> Meelis
>
>
> 




transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent