xml support for api