Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #17139

Re: Fixing the XML batteries

From Serhiy Storchaka <storchaka@gmail.com>
Subject Re: Fixing the XML batteries
Date 2011-12-13 16:27 +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>
Newsgroups comp.lang.python
Message-ID <mailman.3598.1323786499.27778.python-list@python.org> (permalink)

Show all headers | 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


Thread

Re: Fixing the XML batteries Serhiy Storchaka <storchaka@gmail.com> - 2011-12-13 16:27 +0200

csiph-web