how i can use .getElementsByTagName in DOMNodeList Object ? Like:
procedure TForm1.selecionarClick(Sender: TObject);
var DOMDocument: iXMLDOMDocument;
DOM
IDOMElement supports getElementsByTagName which returns an IDOMNodeList. IDOMElement is a "subclass" of IDOMNode.
var
DOMNode: IDOMNode;
DOMElement: IDOMElement;
begin
if Node.DOMNode.nodeType <> ELEMENT_NODE then
exit;
// Obtain IDOMElement interface
DOMElement := (DOMNode as IDOMElement);
// Fetch node list
DOMNodeList := DOMElement.getElementsByTagName('search text');
// Do whatever with the list....
end;
Hope that helps. :)