From: hemus7 on
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?
From: hemus7 on
On Apr 23, 2:36 pm, hem...(a)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
From: pk on
On Wednesday 23 April 2008 11:39, hemus7(a)gmail.com wrote:

> On Apr 23, 2:36 pm, hem...(a)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.
From: Dan Stromberg on
On Wed, 23 Apr 2008 11:43:47 +0200, pk wrote:

> On Wednesday 23 April 2008 11:39, hemus7(a)gmail.com wrote:
>
>> On Apr 23, 2:36 pm, hem...(a)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?

From: hemus7 on
On Apr 23, 11:04 pm, Dan Stromberg <dstrombergli...(a)gmail.com> wrote:
> On Wed, 23 Apr 2008 11:43:47 +0200, pk wrote:
> > On Wednesday 23 April 2008 11:39, hem...(a)gmail.com wrote:
>
> >> On Apr 23, 2:36 pm, hem...(a)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?

im not sure whether there is any equivalent for find for handling xml.
there r tools n patches available lik diffxml(java) ssddiff some perl
python stuffs....
which involves lot of work n understanding.i tried somthin with an
awk
parser available at ftp://ftp.freefriends.org/arnold/Awkstuff/xmlparser.awk
but didn meet with success.