api_generator: xml templates