Skip to content
Snippets Groups Projects
Commit 38c02f38 authored by David Rouquet's avatar David Rouquet
Browse files

Ignore commit when parsing a document

Closes #4
parent 1b031c32
No related branches found
No related tags found
No related merge requests found
Pipeline #196 passed
#!/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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment