During development, I saw xml read errors like this more than once:
TestData.ReadFromXml: xml Deserialization Error: There is an error (2, 2) in the XML document ..
What exactly does (2, 2) mean? Is this line 2 in the xml file? Line 2, token 2, what?
Are there any debugging options that I can add to shed more light on the problem?
Edit: here are the first two lines:
<?xml version="1.0" encoding="utf-8"?>
<TestSession xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
So he will complain about the character “T” on the 2nd line? This is a class that I just serialized and it is well formed. When deserializing, I think it doesn't like something in the class ... and this may explain why it stops at T in TestSession. It would be nice if he told you that he did not like it.
source
share