New submission from Stefan Behnel <stefan...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue36673> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com