#NEWLINE# def __init__( self , md ) : #NEWLINE# #INDENT# if hasattr ( md , 'getroot' ) : #NEWLINE# #INDENT# self . xml = etree . tostring ( md . getroot ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . xml = etree . tostring ( md ) #NEWLINE# #UNINDENT# self . idinfo = Idinfo ( md ) #NEWLINE# self . eainfo = Eainfo ( md ) #NEWLINE# self . distinfo = Distinfo ( md ) #NEWLINE# self . metainfo = Metainfo ( self ) #NEWLINE# if self . idinfo . datasetid : #NEWLINE# #INDENT# self . identifier = self . idinfo . datasetid