23.Two DOM nodes are equivalent if: I.they have the same node type and node name. II.the node data are the same. III.the collection of attribute names are the same. D.I and II only E.I and III only F.II and III only G.I, II and III Answer is D. Does anybody can give me a hint on why III is wrong? or any resource I can look at? Thanks
An attribute is a name value pair. It is not sufficient if just the names are equal. You will have to consider the values too. For instance EmployeeId = "10" and EmployeeId = "20" are not the same although the name of the attribute ie., EmployeeId is same in both the instances. Hope that helps! ------------------ Ajith Kallambella M. Sun Certified Programmer for the Java�2 Platform. IBM Certified Developer - XML and Related Technologies, V1. Co-author of Java 2 Certification Passport
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).