def validateFromString(cls,xmlstring,target): """ Fully validates the corpus against a specific format. @param xmlstring: XML containing the corpus @type xmlstring: string @param target: target format @type target: string @return: validity of the corpus @rtype: boolean """ corpus = Corpus() if corpus.readFromString(xmlstring): return( Validator.validate(corpus,target) ) else: return(False)