XPath on lxml's iterparse matches elements outside its scope
XPath on lxml's iterparse matches elements outside its scope Question: I have huge corpora that I am parsing with lxml, so I am using iterparse which makes it easy to read XML on-the-fly. By using iterparse(fh, tag="your_tag") we can efficiently iterate over nodes in large files. I wish to do some XPath matching for each …
Total answers: 1