Re: XML Patch

2014-10-27 Thread Stefan Behnel
Hi,

please keep this on-list.

Nicholas Cole schrieb am 26.10.2014 um 22:43:
 On Sun, Oct 26, 2014 at 6:30 PM, Stefan Behnel wrote:
 Nicholas Cole schrieb am 26.10.2014 um 18:00:
 I'm looking for a python library that can parse XML Documents and 
 create xml-aware diff files, and then use those to patch
 documents. In other words, I'd like something similar to the Google 
 diff-match-patch tools, but something which is XML aware.
 
 I can see several projects on Pypi that can generate some form of
 xml diff, but I can't seem to see anything that can also do the
 patching side of things.
 
 Is there a use case for this?
 
 Yes - I want to store a series of XML diffs/patches and be able to 
 generate documents by applying them.

Could you be a little more specific? There are lots of ways to generate
XML, but I never heard of anyone who wanted to do this based on diffs
between other documents. What kind of document differences are you talking
about here?

Stefan


-- 
https://mail.python.org/mailman/listinfo/python-list


Re: XML Patch

2014-10-27 Thread Nicholas Cole
On Mon, Oct 27, 2014 at 7:28 AM, Stefan Behnel stefan...@behnel.de wrote:
 Hi,

 please keep this on-list.

Sorry about that. Wrong button!

[snip]

 Yes - I want to store a series of XML diffs/patches and be able to
 generate documents by applying them.

 Could you be a little more specific? There are lots of ways to generate
 XML, but I never heard of anyone who wanted to do this based on diffs
 between other documents. What kind of document differences are you talking
 about here?

I don't think the specific documents matter, and I don't think it's a
unique use-case.  Here's Microsoft talking about XML diff and patching
(including a hypothetical example):

http://msdn.microsoft.com/en-gb/library/aa302294.aspx

There's a tool here to do it:

http://xmlpatch.sourceforge.net

I'd just really like to be able to do something similar in Python.

Best wishes,

N.
-- 
https://mail.python.org/mailman/listinfo/python-list


XML Patch

2014-10-26 Thread Nicholas Cole
Hi All,

I'm looking for a python library that can parse XML Documents and
create xml-aware diff files, and then use those to patch documents.
In other words, I'd like something similar to the Google
diff-match-patch tools, but something which is XML aware.

I can see several projects on Pypi that can generate some form of xml
diff, but I can't seem to see anything that can also do the patching
side of things.

Does anyone have any recommendations?

Best wishes,

Nicholas
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: XML Patch

2014-10-26 Thread Joel Goldstick
On Sun, Oct 26, 2014 at 1:00 PM, Nicholas Cole nicholas.c...@gmail.com wrote:
 Hi All,

 I'm looking for a python library that can parse XML Documents and
 create xml-aware diff files, and then use those to patch documents.
 In other words, I'd like something similar to the Google
 diff-match-patch tools, but something which is XML aware.

 I can see several projects on Pypi that can generate some form of xml
 diff, but I can't seem to see anything that can also do the patching
 side of things.

 Does anyone have any recommendations?

 Best wishes,

 Nicholas
 --
 https://mail.python.org/mailman/listinfo/python-list

Could you use git?


-- 
Joel Goldstick
http://joelgoldstick.com
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: XML Patch

2014-10-26 Thread Stefan Behnel
Nicholas Cole schrieb am 26.10.2014 um 18:00:
 I'm looking for a python library that can parse XML Documents and
 create xml-aware diff files, and then use those to patch documents.
 In other words, I'd like something similar to the Google
 diff-match-patch tools, but something which is XML aware.
 
 I can see several projects on Pypi that can generate some form of xml
 diff, but I can't seem to see anything that can also do the patching
 side of things.

Is there a use case for this?

Stefan


-- 
https://mail.python.org/mailman/listinfo/python-list