def ManifestFromXML(xmlstr):
 manifest = Manifest()
 manifest.parse_string(xmlstr)
 return manifest

def ManifestFromXML ( xmlstr ) : manifest = Manifest ( ) manifest . parse_string ( xmlstr ) return manifest
create and return manifest instance from xml .