Table of Contents

Method FindNode

Namespace
DocWright.Dom
Assembly
DocWright.Dom.dll

FindNode(DomNodeId)

Returns the node with an id, if it is still in this document.

public DomNode? FindNode(DomNodeId id)

Parameters

id DomNodeId

An id read from NodeId of a node of this document.

Returns

DomNode

The node, or null when the id is None, was never given by this document, or names a node that has since been removed from it or moved to another document.

Remarks

A table lookup, plus a walk from the node up to the document to check it is still here. A node that is moved within the document is found under the id it had. The table holds every node whose id has been read, removed ones included, for as long as the document lives, so that a node put back is found again.