#NEWLINE# @ classmethod #NEWLINE# def from_xml( cls , xml ) : #NEWLINE# #INDENT# ' Returns a new Text from the given XML string.\n        ' #NEWLINE# s = parse_string ( s ) #NEWLINE# return Sentence ( s . split ( '\n' ) [ 0 ] , token = s . tags , language = s . language )