[api] fix XML output