[issue8277] ElementTree won't parse comments

2011-10-28 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue8277] ElementTree won't parse comments

2010-08-08 Thread Florent Xicluna
Florent Xicluna added the comment: IIUC it works like that by design. The ElementTree 1.3 (which is part of Python 2.7 and 3.2) allows to define your own parser which parses comments (see previous comments). Close as "won't fix"? -- nosy: +scoder resolution: -> wont fix stage: -> co

[issue8277] ElementTree won't parse comments

2010-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: yes, my code uses the newer version of ElementTree which will be included with 2.7 and 3.2 -- ___ Python tracker ___

[issue8277] ElementTree won't parse comments

2010-04-01 Thread Patrick W.
Patrick W. added the comment: Thanks for your reply, Amaury. That page really might mean that it was not intended for ElementTree to parse such things by default. Although it might be nice if there was some easy way to simply enable it, instead of having to hack it into there and depending on

[issue8277] ElementTree won't parse comments

2010-04-01 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue8277] ElementTree won't parse comments

2010-04-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: ElementTree does parse comments, it just omit them in the tree. A quick search lead me to this page: http://effbot.org/zone/element-pi.htm which can be further simplified: from xml.etree import ElementTree class MyTreeBuilder(ElementTree.TreeBuilder):

[issue8277] ElementTree won't parse comments

2010-03-31 Thread Patrick W.
New submission from Patrick W. : When using xml.etree.ElementTree to parse external XML files, all XML comments within that file are being stripped out. I guess that happens because there is no comment handler in the expat parser. Example: test.xml test.py --- from xm