nodeFromID Method
Returns the node that matches the ID attribute.
var objXMLDOMNode = oXMLDOMDocument.nodeFromID(idString);
HRESULT nodeFromID(
BSTR idString,
IXMLDOMNode** node
);
General Remarks
According to the XML 1.0 Recommendation (REC-xml-19980210), ID attribute values must be unique within their XML documents and no element can specify more than one ID attribute.
The nodeFromID method was designed to handle ID/IDREF relationships in XML, but does not require an attribute of type IDREF. It can be used generically, and is similar to the all collection in DHTML.
To reference a node with nodefromID, the node must by typed as ID in the schema or document type definition (DTD). Simply naming an attribute "ID" does not set its data type.
This member is an extension of the World Wide Web Consortium (W3C) Document Object Model (DOM).
This method applies to the following interface:
Last updated on Saturday, April 10, 2004
© 1992-2003 Microsoft Corporation. All rights reserved.