input_data: xml data to parse. Can be an XMLResource instance, a file-like object a path to a file or a URI of a resource or an Element instance or an ElementTree instance or a string containing the XML data.
Returns:
tuple[dict, list[Exception]]: converted dict; and list of exceptions that occurred during parsing
input_data: the data that has to be encoded to XML data
Raises:
Exception: Any exceptions that made the serialization fail
Returns:
tuple[str, ElementTree, list[Exception]]: string containing the XML; ElementTree representation of the XML; and list of exceptions that occurred during serialization