api_generator: modify xml