[lxml-dev] [Question #65510]: How to set libxml:XML_PARSE_HUGE-option in lxml?

Stefan Behnel stefan_ml at behnel.de
Fri Mar 27 22:12:20 CET 2009


Dirk Rothe wrote:
>> Is there any opposition to keeping the enforced parser restrictions
>> (limited tree depth and text node length) enabled by default in newer
>> libxml2 versions, and to provide a parser switch for disabling them? The
>> alternative would be to disable them by default on all libxml2 versions,
>> and to provide a switch that enables them if libxml2 supports it. But a
>> safe default sounds a lot better.
> 
> I would go for the safe defaults, and document it properly ;)

There's a "huge_tree" option for now, defaulting to False. Let's see if it
works out that way.

https://codespeak.net/viewvc/?view=rev&revision=63399

Stefan


More information about the lxml-dev mailing list