Commit 8f3ed5fc authored by Kevin Levesque's avatar Kevin Levesque Committed by ORD

Ignore the "Models" xml tags as they don't contain nodes

parent 66575e33
...@@ -136,7 +136,7 @@ class XMLParser(object): ...@@ -136,7 +136,7 @@ class XMLParser(object):
nodes = [] nodes = []
for child in self.root: for child in self.root:
tag = self._retag.match(child.tag).groups()[1] tag = self._retag.match(child.tag).groups()[1]
if tag not in ["Aliases", "NamespaceUris", "Extensions"]: # these XML tags don't contain nodes if tag not in ["Aliases", "NamespaceUris", "Extensions", "Models"]: # these XML tags don't contain nodes
node = self._parse_node(tag, child) node = self._parse_node(tag, child)
nodes.append(node) nodes.append(node)
return nodes return nodes
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment