PrepAway - Latest Free Exam Questions & Answers

What should you do?

You create an application for your business partners to submit purchase orders. The application deserializes XML documents sent by your partners into instances of an object named PurchaseOrder. You need to modify the application so that it collects details if the deserialization process encounters any XML content that fails to map to public members of the PurchaseOrder object.
What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Define and implement an event handler for the XmlSerializer.UnknownNode event.

B.
Define a class that inherits from XmlSerializer and overrides the XmlSerialize.FromMappings method.

C.
Apply an XmlInclude attribute to the PurchaseOrder class definition.

D.
Apply an XmlIgnore attribute to the PurchaseOrder class definition.


Leave a Reply