DOMDocument.CreateTreeWalker

Syntax:

CreateTreeWalker(<Node>, <Filter>, <OverrideEntityReferences>)

Parameters:

<Node> (required)

Type: DOMDocument.
DOM node is starting node of the iterator.

<Filter> (optional)

Type: DOMNodeFilter.
DOM node filter.
If not specified, all nodes will be iterated.

<OverrideEntityReferences> (optional)

Type: Boolean.
Flag for overriding DOM entities references. True - during entity reference node override, entity content node override will take place, otherwise the override will not take place.
Default value: True.

Returned value:

Type: DOMTreeWalker.

Description:

It creates a new hierarchical object for DOM document tree, starting from the specified root node.
The method corresponds to the Treewalker interface of W3C standard (for details http://www.w3.org/TR/2000/REC-DOM-Level-2-Traversal-Range-20001113/traversal.html#Traversal-TreeWalker).

Availability:

Server, thick client, external connection, Mobile application (server).

    

1C:Enterprise Developer's Community