diff --git a/src/ifctester/ifctester/ids.py b/src/ifctester/ifctester/ids.py index 7e02151a23..e2a57ce7f8 100644 --- a/src/ifctester/ifctester/ids.py +++ b/src/ifctester/ifctester/ids.py @@ -63,12 +63,11 @@ def open(filepath: str, validate: bool = False) -> Ids: def from_string(xml: str, validate: bool = False) -> Ids: - tree = ET.ElementTree(ET.fromstring(xml)) try: if validate: get_schema().validate(tree) decode = get_schema().decode( - tree, strip_namespaces=True, namespaces={"": "http://standards.buildingsmart.org/IDS"} + xml, strip_namespaces=True, namespaces={"": "http://standards.buildingsmart.org/IDS"} ) except XMLSchemaValidationError as e: raise IdsXmlValidationError(e, "Provided XML appears to be invalid. See details above.")