diff --git a/openmc/element.py b/openmc/element.py index 336d1f028b..5b2a878a86 100644 --- a/openmc/element.py +++ b/openmc/element.py @@ -98,7 +98,7 @@ class Element(str): library_nuclides = set() tree = ET.parse(cross_sections) root = tree.getroot() - for child in root: + for child in root.findall('library'): nuclide = child.attrib['materials'] if re.match(r'{}\d+'.format(self), nuclide) and \ '_m' not in nuclide: