#NEWLINE# def __init__( self , name , parent = None , children = None ) : #NEWLINE# #INDENT# self . name = name #NEWLINE# self . parent = parent #NEWLINE# self . children = ( children or NodeList ( ) ) #NEWLINE# self . level = ( ( parent and ( parent . level + 1 ) ) or 1 )