xml diff and patch in shell script:

xml diff and patch in shell script:

am 23.04.2008 11:36:31 von 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?

Re: xml diff and patch in shell script:

am 23.04.2008 11:39:28 von 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

Re: xml diff and patch in shell script:

am 23.04.2008 11:43:47 von 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.

Re: xml diff and patch in shell script:

am 23.04.2008 20:04:50 von 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?