xml: add huge_tree option to support large XML files (#11940)

* feat(xml): add huge_tree option to support large XML files

Add the huge_tree parameter (bool, default false) which passes huge_tree=True
to lxml's XMLParser, disabling libxml2's internal size restrictions on text
nodes and document depth.

Fixes #4897

* fix(xml): add changelog fragment for PR 11940
This commit is contained in:
Alexei Znamensky
2026-05-02 10:42:13 +12:00
committed by GitHub
parent a6dd7ce58c
commit edcc906cc6
2 changed files with 12 additions and 1 deletions

View File

@@ -0,0 +1,2 @@
minor_changes:
- xml - add ``huge_tree`` option to support processing of very large XML files (https://github.com/ansible-collections/community.general/issues/4897, https://github.com/ansible-collections/community.general/pull/11940).