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?

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

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

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

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

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



Leave a Reply 2

Your email address will not be published. Required fields are marked *