Xml.xmldom.IDOMDocument.getElementById
Delphi
function getElementById(const elementId: DOMString): IDOMElement; safecall; { DOM Level 2 }
C++
virtual HRESULT __safecall getElementById(const System::UnicodeString elementId, _di_IDOMElement &__getElementById_result) = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | Xml.Xmldom.pas Xml.xmldom.hpp |
Xml.xmldom | IDOMDocument |
Description
Returns the element that has the given ID attribute.
The getElementById method returns the element that has an ID attribute with the value specified by the elementId parameter. If no such element exists, getElementById returns null.