diff --git a/mdg/parse/drawio_xml.py b/mdg/parse/drawio_xml.py index 2cf34af..9a47c2a 100644 --- a/mdg/parse/drawio_xml.py +++ b/mdg/parse/drawio_xml.py @@ -282,8 +282,7 @@ def enumeration_parse(package: UMLPackage, element, root) -> Optional[UMLEnumera def attr_parse(parent: UMLClass, element, root, stereotypes) -> UMLAttribute: a = element.get("value") tree = html.fromstring(a) - node = tree.xpath("//div") - value = ''.join(node[0].itertext()).replace(" ", " ") + value = tree.text_content().replace(" ", " ") dq = [] if "{dq_even}" in value: