I just came across with a problem using XmlDocument.LoadXml
.
The application was crashing, giving the following error:
\"Data at
Were you trying to use XmlDocument.LoadXml
and passing in the name of a file? It doesn't do that - it assumes that the string you pass in is the XML. So you might use:
doc.LoadXml("");
or
doc.Load("myfile.xml");
If that doesn't help, could you show your failing and working code? There are different ways you could have changed from using LoadXml
to Load
...