XmlReaderSettings settings = new XmlReaderSettings(); settings.ValidationType = ValidationType.Schema; settings.Schemas.Add(null, xsdfile); XmlReader reader = XmlReader.Create(xmlfile, settings); while(reader.Read()); // just to see if an exception occurs
while(reader.Read());
Dump dump = (Dump)serializer.Deserialize(reader);
There is an error in XML document (2, 2). ---> System.InvalidOperationException: <Dump xmlns=''> wasn't expected
<Dump xmlns=''>
<Dump>
[Serializable, XmlRoot("Dump")] public partial class Dump { }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)