What should you do?

You are developing an application that receives product information from external vendors in the form of XML documents. The information will be stored in a Microsoft SQL Server database. The application must validate all incoming XML data. It uses an XmlValidatingReader object to read each XML document. If any invalid sections of XML are encountered, the inconsistencies are listed in a single document. You must ensure that the validation process runs as quickly as possible.
What should you do?

You are developing an application that receives product information from external vendors in the form of XML documents. The information will be stored in a Microsoft SQL Server database. The application must validate all incoming XML data. It uses an XmlValidatingReader object to read each XML document. If any invalid sections of XML are encountered, the inconsistencies are listed in a single document. You must ensure that the validation process runs as quickly as possible.
What should you do?

A.
Set the ValidationType property of the XmlValidatingReader object to Schema.

B.
Set the CanResolveEntity property of the XmlValidatingReader object to True.

C.
Create and register a ValidationEventHandler method.

D.
Use a try/catch block to catch validation exceptions.



Leave a Reply 0

Your email address will not be published. Required fields are marked *