class documentation

class Node(list): (source)

Known subclasses: zim.formats.DocumentFragment, zim.formats.Element

View In Hierarchy

Base class for DOM-like access to the document structure.
Note
This class is not optimized for keeping large structures in memory.
Class Method new_from_etree Undocumented
Method __init__ Undocumented
Method append Undocumented
Method get Undocumented
Method gettext No summary
Method set Undocumented
Method toxml Undocumented
Method visit Undocumented
Class Variable __slots__ Undocumented
Instance Variable attrib dict with attributes
Instance Variable tag tag name
Method _gettext Undocumented
Method _toxml Undocumented
@classmethod
def new_from_etree(klass, elt): (source)

Undocumented

def __init__(self, tag, attrib=None, *content): (source)

Undocumented

def append(self, item): (source)

Undocumented

def get(self, key, default=None): (source)

Undocumented

def gettext(self): (source)
Get text as string Ignores any markup and attributes and simply returns textual content.
Returns
string
Note
do _not_ use as replacement for exporting to plain text
def set(self, key, value): (source)

Undocumented

def toxml(self): (source)

Undocumented

def visit(self, visitor): (source)

Undocumented

__slots__: tuple[str, ...] = (source)

Undocumented

attrib: dict = (source)
dict with attributes
tag name
def _gettext(self): (source)

Undocumented

def _toxml(self): (source)

Undocumented