PrepAway - Latest Free Exam Questions & Answers

Which code fragment will set the value of EmployeeId to A23?

You load an XML document named doc1 that has an attribute named EmployeeId. Which code
fragment will set the value of EmployeeId to A23?

PrepAway - Latest Free Exam Questions & Answers

A.
Doc1.CreateAttribute(“EmployeeId”, “A23”);

B.
Doc1.DocumentElement.SetAttribute(“Employeeld”,”A23″);

C.
Doc1.CreateNode(“EmployeeId”, “A23”, “”);

D.
Doc1.CreateElement(“Employeeld”,”A23″);

2 Comments on “Which code fragment will set the value of EmployeeId to A23?


Leave a Reply