|
The iterparse() implementation is based on the libxml2 parser. It requires the tree to be intact to finish parsing. If you delete or modify parents of the current node, chances are you modify the structure in a way that breaks the parser. Normally, this will result in a segfault. Please refer to the iterparse section of the lxml API documentation to find out what you can do and what you can't do.
more
|
Why can't I just delete parents or clear the root node in iterparse()?
Related Questions
- The audio tracks in the root nodes are grouped. Audio tracks with the same data are shown only once. ...
- Lymph drainage from the breast goes mostly to armpit lymph nodes but a minor amount of drainage commonly goes ...
- Fibre Channel nodes can be directly connected to one another in a point-to-point topology, but this is not ...
- In FC-AL, because each Fibre Channel node acts as a repeater for all other nodes that it is connected to, one ...
- The Mallard Room is a simulated restaurant lab, operated as part of the culinary arts curriculum at Florida ...