Skip to content

Commit

Permalink
Merge pull request #210 from cfra/feature/huge-trees
Browse files Browse the repository at this point in the history
Enable huge_tree option for parse_xml
  • Loading branch information
leifj committed Mar 30, 2021
2 parents ea26ca4 + 1d8f4c8 commit 0458423
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pyff/utils.py
Expand Up @@ -555,7 +555,11 @@ def hex_digest(data, hn='sha1'):


def parse_xml(io, base_url=None):
return etree.parse(io, base_url=base_url, parser=etree.XMLParser(resolve_entities=False, collect_ids=False))
return etree.parse(io, base_url=base_url, parser=etree.XMLParser(
resolve_entities=False,
collect_ids=False,
huge_tree=True
))


def has_tag(t, tag):
Expand Down

0 comments on commit 0458423

Please sign in to comment.