Re: XML Merge/Diff tool?
- From: "Joerg Jooss" <news-reply@xxxxxxxxxxxxx>
- Date: Fri, 18 Nov 2005 12:17:14 -0800
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
.
- Follow-Ups:
- Re: XML Merge/Diff tool?
- From: Cladonia
- Re: XML Merge/Diff tool?
- Prev by Date: Re: XPath expression help
- Next by Date: Re: Can I make this document format correctly?
- Previous by thread: XPath expression help
- Next by thread: Re: XML Merge/Diff tool?
- Index(es):
Relevant Pages
|