Skip to content
Snippets Groups Projects

XML Converter

Merged Alexander Schlemmer requested to merge f-xml-converter into dev
1 file
+ 4
2
Compare changes
  • Side-by-side
  • Inline
@@ -97,7 +97,10 @@ class XMLTagConverter(Converter):
vardict.update(m_tag.groupdict())
if "match_text" in self.definition:
m_text = re.match(self.definition["match_text"], element.tag.text)
tagtext = element.tag.text
if element.tag.text is None:
tagtext = ""
m_text = re.match(self.definition["match_text"], tagtext, re.DOTALL)
if m_text is None:
return None
vardict.update(m_text.groupdict())
@@ -114,7 +117,6 @@ class XMLTagConverter(Converter):
matched_m_attrib = m_attrib
m_attrib_value = re.match(attrib_def_value, attr_value)
if m_attrib_value is None:
breakpoint()
return None
matched_m_attrib_value = m_attrib_value
# TODO: How to deal with multiple matches?
Loading