Question: Refer to the following code, which is a part of an xml validation:
...
filename = "OrderDetails.xml";
FileStream stream = new FileStream( filename , FileMode.Open);
XmlValidatingReader reader = new XmlValidatingReader(stream);
...
Gavin is trying to open an xml which contains "order details" returned by a Web service, through this code, but an error is being generated in the code. Which of the following might be the cause of error?
AXmlValidatingReader is not a valid class
BIn the constructor of XmlValidatingReader, FileStream object is passed instead of XmlTextReader object
CIn the constructor of XmlValidatingReader, FileStream object is passed instead of XmlReader object
DNone of these
Note: Answer not sure