Python sax: is there a way to stop parsing from within a content handler?

Is there a way to stop parsing from within a content handler? Or is the only way to throw an exception?

Please note that I am using xml.sax.parseString.

+3
source share
1 answer

The full API for SAX content handlers for Python is documented here : as you can see, the information flow is completely one-way, the parser for the handler is no way for the handler to pass information back to the parser (for example, whether to parse).

, , , " " " ". , , .

+4

Source: https://habr.com/ru/post/1719349/


All Articles