<root element xmlns=''> was not expected.
{"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XmlRootAttribute xRoot = new XmlRootAttribute(); | |
xRoot.ElementName = "RootElementName"; | |
xRoot.IsNullable = true; | |
XmlSerializer objSer = new XmlSerializer(typeof(Result), xRoot); | |
FileStream objF = new FileStream("C:\\a.xml", FileMode.Open); | |
Result varResult = (Result)serializer.Deserialize(objF); |