Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #17139
| Path | csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!newsfeed.freenet.ag!news2.euro.net!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <python-python-list@m.gmane.org> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'context': 0.04; 'python': 0.08; 'attributes,': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:80.91.229.12': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'received:lo.gmane.org': 0.09; 'converting': 0.15; 'doing,': 0.16; 'stripped': 0.16; 'subject:XML': 0.16; 'thanks,': 0.18; 'header :In-Reply-To:1': 0.22; 'stefan': 0.24; 'code': 0.25; 'pass': 0.29; 'xml': 0.31; "didn't": 0.31; 'header:User-Agent:1': 0.33; 'this.': 0.33; 'header:X-Complaints-To:1': 0.33; 'to:addr:python-list': 0.34; 'certain': 0.34; 'all.': 0.34; '8bit%:86': 0.37; 'skip:" 10': 0.37; 'but': 0.37; 'received:org': 0.38; 'i.e.': 0.39; 'option': 0.39; 'to:addr:python.org': 0.40; 'below': 0.63; 'glad': 0.68; 'skip:\xd0 20': 0.77; 'received:88.154': 0.84 |
| X-Injected-Via-Gmane | http://gmane.org/ |
| To | python-list@python.org |
| From | Serhiy Storchaka <storchaka@gmail.com> |
| Subject | Re: Fixing the XML batteries |
| Date | Tue, 13 Dec 2011 16:27:56 +0200 |
| References | <jbsfar$en7$1@dough.gmane.org> <CAKmKYaBid4c8Y0pe7txxZMk9+0WN8Hr5ZodS=HP05MdV-ysPhQ@mail.gmail.com> <4EE7425A.2090006@gmail.com> <jc7glm$j62$1@dough.gmane.org> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| X-Gmane-NNTP-Posting-Host | 88.154.86.69 |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:8.0) Gecko/20111110 Thunderbird/8.0 |
| In-Reply-To | <jc7glm$j62$1@dough.gmane.org> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.12 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.3598.1323786499.27778.python-list@python.org> (permalink) |
| Lines | 19 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1323786499 news.xs4all.nl 6984 [2001:888:2000:d::a6]:49179 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | x330-a1.tempe.blueboxinc.net comp.lang.python:17139 |
Show key headers only | View raw
13.12.11 14:32, Stefan Behnel написав(ла): > I stripped my name from the quoted context because I didn't say this. I am glad to hear this. ;) >> I use xml.dom.minidom for XML canonization and convertion: > Do you mean "canonicalisation"? I.e. C14N? That's not what the code > below is doing, not at all. No, only converting to certain textual representation. Converting entities to text (if possible), converting "'" to '"' for quoting, sorting attributes, etc. >> How to do this with xml.etree.ElementTree? > In Python 2.7/3.2, ElementTree has support for C14N serialisation, just > pass the option method="c14n". Thanks, I will try this. But I need 2.6+ compatibility.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Fixing the XML batteries Serhiy Storchaka <storchaka@gmail.com> - 2011-12-13 16:27 +0200
csiph-web