Skip to main content

Module multi_level

Module multi_level 

Source
Expand description

Multi-level disassembly: strip a root element and re-disassemble with different unique-id elements.

Functions§

capture_xmlns_from_root
Capture xmlns from the root element (e.g. LoyaltyProgramSetup) for later wrap.
ensure_segment_files_structure
Ensure all XML files in a segment directory have structure: document_root (with xmlns) > inner_wrapper (no xmlns) > content. Used after inner-level reassembly for multi-level (e.g. LoyaltyProgramSetup > programProcesses).
load_multi_level_config
Load multi-level config from a directory (reads .multi_level.json).
path_segment_from_file_pattern
Derive path_segment from file_pattern (e.g. “programProcesses-meta” -> “programProcesses”).
save_multi_level_config
Persist multi-level config to a directory.
strip_root_and_build_xml
Strip the given element and build a new XML string.