nerdexam
Microsoft

70-515 · Question #58

70-515 Question #58: Real Exam Question with Answer & Explanation

Sign in or unlock 70-515 to reveal the answer and full explanation for question #58. The question stem and answer options stay visible for context.

Question

You are implementing an ASP.NET web application. The application defines the following classes. public class Person { public String Name{get; set;} publicIList<Address> Addresses{get;set;} } public class Address { public String AddressType{get; set;} public string AddressValue{get;set;} } The applicaction must generate XML from personList, wich is a collection of Person instances. The following XML is an example of the schema than the generated XML must use. <Persons> <Person Name="John Doe"> <Address Email="[email protected]"/> <Address AlternativeEmail="[email protected]"/> <Address MSNInstanceMessenger="[email protected]"/> </Person> ..... </Persons> You need to generate the XML. Wich code segment should you use?

Options

  • Avar XML= new
  • Bvar XML= new
  • Cvar XML= new
  • Dvar XML= new

Unlock 70-515 to see the answer

You've previewed enough free 70-515 questions. Unlock 70-515 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 70-515 Practice