[issue20375] ElementTree: Document handling processing instructions

Nikolaus Rath report at bugs.python.org
Fri Jan 24 05:53:36 CET 2014


New submission from Nikolaus Rath:

(This issue was branched of from #9521).

When parsing XML, etree currently skips over all processing instructions and comments. However, both can be represented in the tree and are also written out when generating XML.

The attached patch documents this (IMO surprising) behavior.

----------
assignee: docs at python
components: Documentation
files: xml.etree_r1.patch
keywords: patch
messages: 209036
nosy: docs at python, eli.bendersky, eric.araujo, ezio.melotti, georg.brandl, nikolaus.rath, scoder
priority: normal
severity: normal
status: open
title: ElementTree: Document handling processing instructions
type: enhancement
versions: Python 2.7, Python 3.3, Python 3.4
Added file: http://bugs.python.org/file33675/xml.etree_r1.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20375>
_______________________________________


More information about the Python-bugs-list mailing list