diff --git a/scripts/unlizeXml.py b/scripts/unlizeXml.py index e3af7afde7a7c768e5b956110bf0960b93f6c303..c05a361803421e04d414970734bcad9a20f7eb17 100755 --- a/scripts/unlizeXml.py +++ b/scripts/unlizeXml.py @@ -1,6 +1,6 @@ #!/bin/env python3 -from lxml import etree +from lxml import etree, objectify import requests import click import tempfile @@ -125,7 +125,8 @@ def unl2dot(text, path): help='Path of the unltools jar') def unlizeXml(input, output, lang, dry_run, svg, unltools_path): - doc = etree.parse(input) + parser = etree.XMLParser(remove_comments=True) + doc = objectify.parse(input, parser=parser) remove_namespace(doc) tags = ['title', 'text_body', 'term', 'meaning'] for t in tags: