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? 

A XmlValidatingReader is not a valid class 

B In the constructor of XmlValidatingReader, FileStream object is passed instead of XmlTextReader object 

C In the constructor of XmlValidatingReader, FileStream object is passed instead of XmlReader object 

D None of these 

+ Answer
+ Explanation
+ Report
Total Preview: 461

Copyright © 2024. Powered by Intellect Software Ltd