#NEWLINE# def _write_layers( builder , layers , parent , element , attributes ) : #NEWLINE# #INDENT# builder . start ( parent , dict ( ) ) #NEWLINE# for l in layers : #NEWLINE# #INDENT# builder . start ( element , ( attributes or dict ( ) ) ) #NEWLINE# if ( l is not None ) : #NEWLINE# #INDENT# builder . start ( 'name' , dict ( ) ) #NEWLINE# builder . data ( element ) #NEWLINE# builder . end ( 'name' ) #NEWLINE# #UNINDENT# builder . end ( element ) #NEWLINE# #UNINDENT# builder . end ( parent )