Skip to main content

Module builders

Module builders 

Source

Functions§

build_disassembled_file
Build and write a single disassembled file.
build_disassembled_files_unified
build_xml_string
Build XML string from XmlElement.
extract_root_attributes
Extracts XML attributes from a root element and returns them as a flat map. Handles @-prefixed keys (e.g. @xmlns, @version) and xmlns (default namespace). Converts values to strings for consistent XML output.
merge_xml_elements
Merge multiple XML elements into one.
merge_xml_elements_owned
Owned version of merge_xml_elements: consumes the parsed elements and moves their content into the merged tree instead of cloning it.
reorder_root_keys
Reorder the root element’s child keys to match the given order. Keys not in key_order are appended at the end.
reorder_root_keys_owned
Owned version of reorder_root_keys: moves the root’s children into their new order instead of cloning them. An element without the expected shape is returned unchanged (the case where reorder_root_keys returns None).