Re: XML Merge/Diff tool?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



nickdu wrote:

> Is there a tool that will merge XML documents? We also need the
> reverse, we need to be able to create a Diff of two documents. What
> we're trying to do is just store differences of documents at
> different levels of hierarchy in our configuration store.
>
> As an example, lets say at a certain hierarchy in our configuration
> store is the following document:
>
> <grid bgColor="Red" fgColor="Green" Width="200" Height="100">
> <font name="Arial" size="12" style="Italic"/>
> </grid>
>
> And at a lower (derived) level we want to store the document:
>
> <grid bgColor="Red" fgColor="Green" Width="200" Height="200">
> <font name="Arial" size="20" style="Italic"/>
> </grid>
>
> We only want to store the diff at this lower level which is:
>
> <grid Height="200">
> <font size="20"/>
> </grid>
>
> Of course when someone asks for this bit of configuration data at
> this lower level we need to merge the two documents together (lower
> levels override higher levels) to get:
>
> <grid bgColor="Red" fgColor="Green" Width="200" Height="200">
> <font name="Arial" size="20" style="Italic"/>
> </grid>
>
> Elements which hold collections (arrays) prove a bit more difficult.
> Does anyone know of a tool that exists which will do both the 'diff'
> and 'merge'?

Microsoft offers XmlDiff at http://www.gotdotnet.com/team/xmltools/.
I'm not aware of an XML merge tool.

Cheers,
--
http://www.joergjooss.de
mailto:news-reply@xxxxxxxxxxxxx
.



Relevant Pages

  • Re: Item changelogs and rollback
    ... It records the ID of the editor, the timestamp of ... The easy way would be to simply store the entire text of the article ... Why not use diff with temporary files. ...
    (comp.lang.php)
  • Re: Item changelogs and rollback
    ... It records the ID of the editor, the timestamp of ... The easy way would be to simply store the entire text of the article ... If you can execdiff and patch, that will help. ...
    (comp.lang.php)
  • Re: Lantus problem
    ... Dayton's and very expensive store. ... I shopped target and got the exact same clothes for a fourth the ... nobody would know the diff. ...
    (alt.support.diabetes)
  • Re: Lantus problem
    ... Dayton's and very expensive store. ... I shopped target and got the exact same clothes for a fourth the ... nobody would know the diff. ...
    (alt.support.diabetes)