Add support to parsing large xml inputs (https://github.com/RDFLib/rdflib/issues/749) by artreven · Pull Request #750 · RDFLib/rdflib (original) (raw)
As @gromgull says, the default etree from the standard library does not support this option:
import xml.etree.ElementTree as etree
etree.XMLParser(huge_tree=True)
On Python 3, this fails with:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
TypeError: 'huge_tree' is an invalid keyword argument for this function
Since lxml is an optional package for RDFLib, you cannot rely on it being available to support the non-standard keyword (huge_tree
).