You are developing an application that includes a class named Customer.
The application will output the Customer class as astructured XML document by using the following code
segment:
You need to ensure that the Customer class will serialize to XML.
How should you complete the relevant code? (To answer, drag the appropriate code segments to the
correct locations in the answer area. Each code segment may be used once, more than once, or not at all.
You may need to drag the split bar between panes orscroll to view content.)
Answer:
Use Code Segments:
2
4
8
6
Attribute…
2
3
8
6
Agreed with j,
2
3 – because prospectId is attribute, not element
8
6
2
3
8
6