@staticmethod
def from_xml(xml_file):
    """
        Returns a tuple of (api_object, binding_object).
        Parameters:
        xml_file - either a filename or a stream object
        """
    from maec.utils.parser import EntityParser
    parser = EntityParser()
    maec_package = parser.parse_xml(xml_file)
    maec_package_obj = maec_package.to_obj()
    return maec_package, maec_package_obj
