Added support for XML return type