XML DOM » Document » nodeFromID

Compability: Internet Explorer


This method returns the node for the element whose ID attribute matches the one specified. If there is no match, it returns null. This method was designed to handle ID/IDREF relationships in XML, but does not require an attribute of type IDREF. It can be used generically, similarly to the all collection in DHTML. This method requires the use of a xml-schema or dtd.