MCQs > IT & Programming > Web Services > 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 might be the cause of error?

Web Services MCQs

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?

Answer

Correct Answer:

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

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Web Services Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Web Services Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it