Are you getting this .xml file as File object or you are receiving a Stream? You can please try renaming the file using Java functionality and then add it as attachment to the PDF.
Please note that the ticket is currently under the investigation phase and as soon as its analysis is done, we will be sharing its fix ETA with you. We highly appreciate your patience and comprehension in this regard. Please give us some time.
We are sorry for the inconvenience caused.