[issue36673] Comment/PI parsing support for ElementTree

Stefan Behnel report at bugs.python.org
Sat Apr 20 03:33:22 EDT 2019


New submission from Stefan Behnel <stefan_ml at behnel.de>:

The TreeBuilder in xml.etree.ElementTree ignores comments and processing instructions. It should at least have a way to pass them through, even if there is not currently a way to append comments and PIs to the tree when they appear *outside* of the root element.

The pull parser interface would directly benefit from this, because it can then report "comment" and "pi" events.

----------
assignee: scoder
components: Library (Lib), XML
messages: 340565
nosy: scoder
priority: normal
severity: normal
stage: needs patch
status: open
title: Comment/PI parsing support for ElementTree
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36673>
_______________________________________


More information about the Python-bugs-list mailing list