Base Builder¶
Base class of Builders.
-
class
benker.builders.base_builder.
BaseBuilder
(**options)¶ Bases:
object
Base class of Builders.
-
static
append_cell_elements
(cell_elem, elements)¶ Append XML elements, PIs or texts to a cell element.
Parameters: - cell_elem (ElementType) – Cell element
- elements – list of child elements to append
New in version 0.5.1.
-
finalize_tree
(tree)¶ Give the opportunity to finalize the resulting tree structure.
Parameters: tree – The resulting tree. New in version 0.4.0.
-
generate_table_tree
(table)¶ Build the XML table from the Table instance.
Parameters: table (benker.table.Table) – Table Returns: Table tree
-
static
-
benker.builders.base_builder.
ElementType
¶ alias of
lxml.etree._Element