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_orderare 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. Anelementwithout the expected shape is returned unchanged (the case wherereorder_root_keysreturnsNone).