def make_asset_xml(amount, xml_filename):
 all_md = make_asset_md(amount)
 xml_root = etree.Element('assets')
 for mdata in all_md:
  asset_element = etree.SubElement(xml_root, 'asset')
  mdata.to_xml(asset_element)
 with open(xml_filename, 'w') as xml_file:
  etree.ElementTree(xml_root).write(xml_file)

def make_asset_xml ( amount , xml_filename ) : all_md = make_asset_md ( amount ) xml_root = etree . Element ( 'assets' ) for mdata in all_md : asset_element = etree . SubElement ( xml_root , 'asset' ) mdata . to_xml ( asset_element ) with open ( xml_filename , 'w' ) as xml_file : etree . ElementTree ( xml_root ) . write ( xml_file )
make an xml file filled with fake assetmetadata .