XML Error while downloading a PDF file