api responds to xml