Monday, November 17, 2014

'None' is an invalid XmlNodeType. Line 1, position 123.

I hit this error trying to read the second of a series of nodes with an System.Xml.XmlReader type in C# like so:

myXmlReader.ReadToFollowing("Whatever");

 
 

The cure was to put line breaks between the nodes with a backslash and a lowercase n like so:

\n

 
 

...but I should not of had to do this. What's going on?

No comments:

Post a Comment