Message324837
| Author | scoder |
|---|---|
| Recipients | Martin Hosken, eli.bendersky, scoder, serhiy.storchaka |
| Date | 2018-09-08.12:32:16 |
| SpamBayes Score | -1.0 |
| Marked as misclassified | Yes |
| Message-id | <1536409936.87.0.56676864532.issue34600@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| 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 | |