PrepAway - Latest Free Exam Questions & Answers

What should you do to find all validation errors in the XML document?

You create a Web application to process XML documents. The Web application receives XML document files from several sources, reads them, and stores them in a Microsoft SQL Server database. The Web application parses all incoming data files to ensure that they conform to an XML schema. You need to find all validation errors in the XML document.

What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Load the XML data by using an instance of the XmlDocument class and specify a location for the application schema.

B.
Configure the ValidationEventHandler in the XmlReaderSettings of the XmlReader object.

C.
Read the XML file into a DataSet object and set the EnforceConstraints property to True.

D.
Read the XML file into a DataSet object. Handle the DataSet.MergeFailed event to parse the data that does not conform to the XML schema.


Leave a Reply