ixmldomnode

DOMElement in Delphi

余生长醉 提交于 2019-12-02 16:38:18
问题 how i can use .getElementsByTagName in DOMNodeList Object ? Like: procedure TForm1.selecionarClick(Sender: TObject); var DOMDocument: iXMLDOMDocument; DOMNodeList: iXMLDOMNodeList; DOMNode: iXMLDOMNode; DOMElement: iXMLDOMElement; i: Integer; begin Memo.Text := ''; with DOMDocument do begin DOMDocument := coDOMDocument.Create; DOMDocument.load( 'C:\Usuarios.xml' ); DOMDocument.preserveWhiteSpace := false; DOMNodeList := DOMDocument.selectNodes( './/usuario[@codigo="'+codigo.Text+'"]/' ); for

DOMElement in Delphi

青春壹個敷衍的年華 提交于 2019-12-02 09:37:26
how i can use .getElementsByTagName in DOMNodeList Object ? Like: procedure TForm1.selecionarClick(Sender: TObject); var DOMDocument: iXMLDOMDocument; DOMNodeList: iXMLDOMNodeList; DOMNode: iXMLDOMNode; DOMElement: iXMLDOMElement; i: Integer; begin Memo.Text := ''; with DOMDocument do begin DOMDocument := coDOMDocument.Create; DOMDocument.load( 'C:\Usuarios.xml' ); DOMDocument.preserveWhiteSpace := false; DOMNodeList := DOMDocument.selectNodes( './/usuario[@codigo="'+codigo.Text+'"]/' ); for i := 0 to DOMNodeList.length - 1 do begin end; end; end; My XML structure: <?xml version="1.0" encoding

Excel VBA getting specific node from XML

人走茶凉 提交于 2019-11-28 00:05:57
问题 I have an XML file from a URL API (the URL I have not shared since it allows access to secure info). From this file I want to get certain info out. My problem is, once I am in the parent node (eventNode) I want to simply be able to get the data from specific child nodes. For example if eventNode was <event><ID>1</ID>...<title>event 1</title></event> , how would I get 1 from just knowing the node name is ID (or any other value I want to pull out)? I have looked a lot through forums and the