Hello,
I am trying to read this xml file. But whenever I get to the load part of it, it gives me this error: "The data at the root level is invalid. Line 1, position 1"
This is the code I am working with:
publicstatic Response Message(string doc)
{
StringReader reader = new StringReader(doc);
XmlTextReader textReader = new XmlTextReader(reader);
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(textReader); //gets stuck here
return Response.Message(xmlDoc);
}
doc is the filepath of the xml document.
If anybody has any idea on how to solve this problem that would be great.