Message324837
There are dedicated handler methods that you can implement: "def comment(self, comment)" and "def pi(self, target, data)". Both (c)ElementTree and lxml support those.
I think the "target" argument to the parser is a bit underdocumented, and the standard TreeBuilder does not implement those methods (because it does not use them).
https://docs.python.org/3/library/xml.etree.elementtree.html#xmlparser-objects
Probably worth mentioning that in the docs. |
|
Date |
User |
Action |
Args |
2018-09-08 12:32:16 | scoder | set | recipients:
+ scoder, eli.bendersky, serhiy.storchaka, Martin Hosken |
2018-09-08 12:32:16 | scoder | set | messageid: <1536409936.87.0.56676864532.issue34600@psf.upfronthosting.co.za> |
2018-09-08 12:32:16 | scoder | link | issue34600 messages |
2018-09-08 12:32:16 | scoder | create | |
|