Having trouble using XMLTextReader to read through different XML files

farhan

New Member
I have to read data from different XML files stored in my server, go through its nodes and save the information to a database. I do ok with the first file, everything I want gets inserted into the database, but when I get on with next one, it sends an error:\[code\]'None' is an invalid XmlNodeType. Line 14716, position 1.\[/code\]Right on this line of my code:\[code\]reader.ReadStartElement("forecast")\[/code\]The forecast node does exist on the file, it's built exactly like the first one. What could the problem be?
 
Back
Top