I have an XML response returning from a web service. It all works fine on my local machine in debug mode, but when I copy it up to the server I am getting the following error:
Data at the root level is invalid. Line 1, position 1.
I did some research and saw one suggestion to use .Load with a StringReader instead of sending the string in directly via .LoadXml - both methods return the error. Here is a sample of the XML:
I'm baffled why it works locally in debug but not at the server. Any ideas?
Data at the root level is invalid. Line 1, position 1.
I did some research and saw one suggestion to use .Load with a StringReader instead of sending the string in directly via .LoadXml - both methods return the error. Here is a sample of the XML:
XML:
<?xml version='1.0' encoding='UTF-8'?> <Package id='1234' refid='6789'> <Status value='done'> <Document type='dt'/> </Status> </Package>
I'm baffled why it works locally in debug but not at the server. Any ideas?