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

Dirk Rothe d.rothe at semantics.de
Fri Mar 27 14:10:33 CET 2009


> 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 ;)


More information about the lxml-dev mailing list