def parse_xml_output()

in src/module_utils/sap_automation_qa.py [0:0]


    def parse_xml_output(self, xml_output: str) -> Optional[ET.Element]:
        """
        Parses the XML output and returns the root element.

        :param xml_output: XML output to parse
        :type xml_output: str
        :return: The root element of the XML output
        :rtype: Optional[ET.Element]
        """
        if xml_output.startswith("<"):
            return ET.fromstring(xml_output)
        return None