def parsexml_(*args, **kwargs):
if (XMLParser_import_library == XMLParser_import_lxml and
'parser' not in kwargs):
# Use the lxml ElementTree compatible parser so that, e.g.,
# we ignore comments.
kwargs['parser'] = etree_.ETCompatXMLParser()
#doc = etree_.parse(*args, **kwargs)
doc = safe_parse(*args, **kwargs)
return doc
评论列表
文章目录