#NEWLINE# def to_xml( self ) : #NEWLINE# #INDENT# ' Return an ``etree.Element`` representing this package ' #NEWLINE# element = etree . Element ( 'package' ) #NEWLINE# element . set ( 'name' , self . name ) #NEWLINE# if self . path : #NEWLINE# #INDENT# element . set ( 'path' , self . path ) #NEWLINE# #UNINDENT# if self . version : #NEWLINE# #INDENT# element . set ( 'version' , self . version ) #NEWLINE# #UNINDENT# if self . url : #NEWLINE# #INDENT# element . set ( 'url' , self . url ) #NEWLINE# #UNINDENT# if self . toolchain_file : #NEWLINE# #INDENT# element . set ( 'toolchain_file' , self . toolchain_file ) #NEWLINE# #UNINDENT# if self . sysroot : #NEWLINE# #INDENT# element . set ( 'sysroot' , self . sysroot ) #NEWLINE# #UNINDENT# if self . cross_gdb : #NEWLINE# #INDENT# element . set ( 'cross_gdb' , self . cross_gdb ) #NEWLINE# #UNINDENT# qibuild . deps . dump_deps_to_xml ( self , element ) #NEWLINE# return element