Routines (alphabetical) > Object Classes > File Format Object Classes > IDLffXMLDOMTreeWalker::GetCurrentNode

# IDLffXMLDOMTreeWalker::GetCurrentNode

The IDLffXMLDOMTreeWalker::GetCurrentNode function method creates an object that is a subclass of IDLffXMLDOMNode and returns the object reference to that object. The object refers to the node in the DOM tree to which the walker is currently pointing.

This method destroys the object returned by the most recent previous invocation of any of the following navigation methods:

- IDLffXMLDOMTreeWalker::FirstChild
- IDLffXMLDOMTreeWalker::GetCurrentNode
- IDLffXMLDOMTreeWalker::LastChild
- IDLffXMLDOMTreeWalker::NextNode
- IDLffXMLDOMTreeWalker::NextSibling
- IDLffXMLDOMTreeWalker::ParentNode
- IDLffXMLDOMTreeWalker::PreviousNode
- IDLffXMLDOMTreeWalker::PreviousSibling

A node object returned by this method is destroyed when the tree walker is destroyed.

## Syntax

Result = Obj->[IDLffXMLDOMTreeWalker::]GetCurrentNode()

## Return Value

Returns the object reference to the object that refers to the tree walker’s current position in the DOM tree.

## Arguments

None

## Keywords

None

## Version History

6.2 | Introduced