ensure xml renders and correct content-type