now prints result as XML