Download Now

    Reference INode

    Declared in Codebot.Text.Xml.pas on line 82

    INode is an element, attribute, text, or document node in an xml tree
      INode = interface
      public
        { The underlying platform node object }
        function Instance: Pointer;
        { The next sibling node or nil if there is none }
        function Next: INode;
        { Select the first node matching an xpath or nil if there is no match }
        function SelectNode(const XPath: string): INode;
        { Select a list of nodes matching an xpath }
        function SelectList(const XPath: string): INodeList; overload;
        { Select a list of nodes matching an xpath returning true if any matched }
        function SelectList(const XPath: string; out List: INodeList): Boolean; overload;
        { Return the node at a path creating any missing elements along the way }
        function Force(const Path: string): INode;
        { The document which owns the node }
        property Document: IDocument read GetDocument;
        { The parent node or nil if there is none }
        property Parent: INode read GetParent;
        { A filer which reads and writes values relative to this node }
        property Filer: IFiler read GetFiler;
        { The attributes of an element }
        property Attributes: INodeList read GetAttributes;
        { The child nodes }
        property Nodes: INodeList read GetNodes;
        { The type of node }
        property Kind: TNodeKind read GetKind;
        { The name of the node }
        property Name: string read GetName;
        { The text content of the node }
        property Text: string read GetText write SetText;
        { The node and its children as xml }
        property Xml: string read GetXml write SetXml;
      end;

    See also