Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.008 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'xml,': 0.05; 'pypi': 0.07; 'here?': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'python': 0.11; '6:30': 0.16; 'from:addr:behnel.de': 0.16; 'from:addr:stefan_ml': 0.16; 'from:name:stefan behnel': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'subject:XML': 0.16; 'wrote:': 0.18; 'library': 0.18; 'stefan': 0.19; 'things.': 0.19; '>>>': 0.22; 'this?': 0.23; 'header:User- Agent:1': 0.23; 'parse': 0.24; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'patch': 0.29; 'xml': 0.29; "i'm": 0.30; 'anyone': 0.31; "i'd": 0.34; 'could': 0.34; "can't": 0.35; 'something': 0.35; 'but': 0.35; 'google': 0.35; 'there': 0.35; 'words,': 0.36; 'hi,': 0.36; 'similar': 0.36; 'tools,': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'little': 0.38; 'anything': 0.39; 'heard': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'kind': 0.63; 'more': 0.64; 'talking': 0.65; 'series': 0.66; 'side': 0.67; 'between': 0.67; 'yes': 0.68; '26,': 0.68; 'applying': 0.72; 'cole': 0.84; 'received:87.139': 0.84; 'differences': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Stefan Behnel Subject: Re: XML Patch Date: Mon, 27 Oct 2014 08:28:10 +0100 References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: p578ba676.dip0.t-ipconnect.de User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 29 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1414394904 news.xs4all.nl 2857 [2001:888:2000:d::a6]:36439 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79767 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