nl: call the method self.xml.startElement with 2 arguments: string 'field' and a dictionary containing 2 entries: field.name for 'name',
code: self . xml . startElement ( "field" , { "name" : field . name , "type" : field . get_internal_type ( ) } )