protecting against (future) non-class root node children
[Evergreen.git] / Open-ILS / src / python / oils / utils / idl.py
index 76bf5f8..32da172 100644 (file)
@@ -83,7 +83,7 @@ class IDLParser(object):
 
         for child in root.childNodes:
         
 
         for child in root.childNodes:
         
-            if child.nodeType == child.ELEMENT_NODE:
+            if child.nodeType == child.ELEMENT_NODE and child.nodeName == 'class':
         
                 # -----------------------------------------------------------------------
                 # 'child' is the main class node for a fieldmapper class.
         
                 # -----------------------------------------------------------------------
                 # 'child' is the main class node for a fieldmapper class.