Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML throws error on server, but not in debug locally

Status
Not open for further replies.

XgrinderX

Programmer
Mar 27, 2001
225
US
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:

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?
 
Disregard - we discovered the XML response on the server was incorrect.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top