Xml.Win.msxmldom.TMSDOMNodeList

Delphi
TMSDOMNodeList = class(TMSDOMInterface, IDOMNodeList)
C++
class PASCALIMPLEMENTATION TMSDOMNodeList : public TMSDOMInterface
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | Xml.Win.msxmldom.pas Xml.Win.msxmldom.hpp |
Xml.Win.msxmldom | Xml.Win.msxmldom |
Description
Represents a node list in a DOM document. To get the list of a node's child nodes, you can use the following code:
NodeList := TMSDOMNodeList.Create(Node.MSNode.childNodes);
To get a list of nodes with specific names from a DOM document, you can use the following code:
// get a list of 'b' elements
NodeList := TMSDOMNodeList.Create
(Doc.MSDocument.getElementsByTagName('b'));
Note: To retrieve an
IDOMNodeList
reference from a TMSDOMNodeList object, you can use the MSNodeList property.