modern_urwid.xml.parser

Functions

parse_attrs(kwargs)

parse_element(element[, parent])

Get the AST representation of an XML element

modern_urwid.xml.parser.parse_attrs(kwargs: dict)
modern_urwid.xml.parser.parse_element(element: Element, parent=None) Node

Get the AST representation of an XML element

Parameters:
  • element (lxml.etree.Element) – The XML element

  • parent (Node, optional) – The AST representation of the parent of this XML element

Returns:

An AST node

Return type:

Node