试题详情
- 单项选择题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?()
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.
- B
关注下方微信公众号,在线模考后查看
热门试题