Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

/proc/kallsyms format, sqldatasource dal, wwwxxxenden, convert raid5 to raid 10 mdadm, apache force chunked, nrao wwwxxx, xxxxxdup, procmail change subject header, wwwXxx not20, Wwwxxx.doks sas

Links

XODOX
Impressum

#1: xml diff and patch in shell script:

Posted on 2008-04-23 11:36:31 by hemus7

Hi,
Is there any shell script available to xml diff and xml patch.Or is it
possible to write a shell script to do the same?

Report this message

#2: Re: xml diff and patch in shell script:

Posted on 2008-04-23 11:39:28 by hemus7

On Apr 23, 2:36 pm, hem...@gmail.com wrote:
> Hi,
> Is there any shell script available to xml diff and xml patch.Or is it
> possible to write a shell script to do the same?

My actual requirement is to do a 3 way merge for xml files using shell
script,but i couldn find a solution
So thought of doing diff and patch first
Please help

Report this message

#3: Re: xml diff and patch in shell script:

Posted on 2008-04-23 11:43:47 by PK

On Wednesday 23 April 2008 11:39, hemus7@gmail.com wrote:

> On Apr 23, 2:36 pm, hem...@gmail.com wrote:
>> Hi,
>> Is there any shell script available to xml diff and xml patch.Or is it
>> possible to write a shell script to do the same?
>
> My actual requirement is to do a 3 way merge for xml files using shell
> script,but i couldn find a solution
> So thought of doing diff and patch first
> Please help

Have you tried googling for "xmldiff"?

--
All the commands are tested with bash and GNU tools, so they may use
nonstandard features. I try to mention when something is nonstandard (if
I'm aware of that), but I may miss something. Corrections are welcome.

Report this message

#4: Re: xml diff and patch in shell script:

Posted on 2008-04-23 20:04:50 by Dan Stromberg

On Wed, 23 Apr 2008 11:43:47 +0200, pk wrote:

> On Wednesday 23 April 2008 11:39, hemus7@gmail.com wrote:
>
>> On Apr 23, 2:36 pm, hem...@gmail.com wrote:
>>> Hi,
>>> Is there any shell script available to xml diff and xml patch.Or is it
>>> possible to write a shell script to do the same?
>>
>> My actual requirement is to do a 3 way merge for xml files using shell
>> script,but i couldn find a solution
>> So thought of doing diff and patch first Please help
>
> Have you tried googling for "xmldiff"?

I looked at XML diff tools a few months ago, and found them rather less
general than diff is for text files.

If someone knows of a really good xmldiff tool, I'd be interested in
hearing about it.

It seems like a lot of xml problems, including diff'ing, could be solved
by having a find(1) equivalent for xml that lists the document with prior
portions in the hierarchy repeated. Then it would seem that traditional
diff might work pretty well on xml.

But is that patented?

Report this message