Node
Overview
Node is a class in Aspose.Note for Python.
Node.Accept(visitor) enables a visitor object to traverse or process a node in the document object model.
Node is the abstract base class for all nodes in the Aspose.Note document tree. Every element in a OneNote document — pages, outlines, text blocks, images, and tables — ultimately derives from Node. It provides the common traversal interface used by visitor-pattern and recursive enumeration methods. Child nodes are accessed via GetChildNodes(), and each node can be identified by its NodeType property without requiring isinstance checks at runtime.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
ParentNode | Node | None | Read | And Node.Document expose the parent node and the owning document of a node |
Document | Document | None | Read | Returns the Document that owns this node, or None if it is not attached |
Methods
| Signature | Description |
|---|---|
Accept(visitor: DocumentVisitor) | Enables a visitor object to traverse or process a node in the document object model |