T
tshad
I have a small xml document:
<book>
<title>The Title</title>
</book>
I am trying to read this document:
XmlDocument doc = new XmlDocument();
doc.LoadXml(filePath);
But on the doc.load, I get:
Data at the root level is invalid. Line 1, position 1.
Why is this?
IE shows the file fine.
What is wrong with the root?
Thanks,
Tom
<book>
<title>The Title</title>
</book>
I am trying to read this document:
XmlDocument doc = new XmlDocument();
doc.LoadXml(filePath);
But on the doc.load, I get:
Data at the root level is invalid. Line 1, position 1.
Why is this?
IE shows the file fine.
What is wrong with the root?
Thanks,
Tom