info-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: merge mode for XML


From: EXT-Corcoran, David
Subject: RE: merge mode for XML
Date: Fri, 26 Apr 2002 06:51:36 -0700

It helps me to think of a plain ASCII text file source (C,java,perl etc) as
a markup language where a newline is the only tag.

To extend the delta generation of a more structured markup language, such as
XML, probably would require knowledge of that syntax by the diff program.

A quick an dirty approach may be to prefix all opening tags with a newline,
suffix all closing tags with a newline, and then remove all blank lines
unless inside a tag (in and among CDATA); essentially run it through an xml
equiv of cb(1) or indent(1).


--@@ 
   ~ 
 DavidC

No State shall convert a liberty into a privilege, license it, and charge a
fee therefore. 

~ Murdock v. Pennsylvania, 319 US 105, US Supreme Court, 1943.


> -----Original Message-----
> From: address@hidden [mailto:address@hidden
> Sent: Thursday, April 25, 2002 6:24 PM
> To: address@hidden
> Cc: address@hidden
> Subject: Re: merge mode for XML
> 
> 
> [ On Thursday, April 25, 2002 at 16:10:37 (-0500), Sean Hager wrote: ]
> > Subject: merge mode for XML
> >
> > Is there a merge mode or merge algorithm that works well 
> for XML files?
> 
> Doesn't diff3 work well enough?
> 
> XML files are more or less just text, right?
> 
> If the tags are all on separate lines, then regardless of whether
> content is changed, or tags are changed, diff3 will do the 
> right thing.
> 
> -- 
>                                                               
> Greg A. Woods
> 
> +1 416 218-0098;  <address@hidden>;  <address@hidden>;  
> <address@hidden>
> Planix, Inc. <address@hidden>; VE3TCP; Secrets of the Weird 
> <address@hidden>
> 
> _______________________________________________
> Info-cvs mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/info-cvs
> 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]