I am encountered with issue while parsing the xml to document. I am fetching the xml from the DB queues by http url posters and trying to convert that xml to documnet for further processing. But the xml what i get is with the special character in main xml vesrion tag like &S<?xml version="1.0" encoding="UTF-8" ?> . This first & (amp) is causing mal formed error.
I know this is coming from our source but, i am unable to find the root cause of these scenarios.
Please share if any one came accross this issue before