#NEWLINE# def __init__( self , xmltext ) : #NEWLINE# #INDENT# xmlp = lxml . etree . XMLParser ( recover = True , remove_comments = True , resolve_entities = False ) #NEWLINE# self . _root = lxml . etree . fromstring ( xmltext , parser = xmlp ) #NEWLINE# rt = self . _root . tag #NEWLINE# self . type = ( self . _root . tag . split ( '}' , 1 ) [ 1 ] if ( '}' in rt ) else rt )