labapi.util.extract#

XML Extraction Utilities Module.

This module provides utility functions for extracting data from lxml.etree.Element objects, including flattening dictionaries for easier processing, converting strings to booleans, and a general-purpose XML extraction function.

Functions

extract_etree(_etree, format)

Extract data from an lxml.etree.Element using a format dictionary.

to_bool(s)

Convert a string representation to a boolean value.