Extract XML declaration from raw XML (quickxml_to_serde drops it).
Returns a Value object like {“@version”: “1.0”, “@encoding”: “UTF-8”, “@standalone”: “yes”}
for use in build_xml_string. None if no declaration found.
Mark elements written as a single-line “compact” wrapper around exactly one nested
child element, with zero whitespace between the wrapper’s start tag, the child, and
the wrapper’s end tag – e.g. Salesforce Flow’s
<connector><targetReference>X</targetReference></connector> idiom. Marks by
inserting "#compact": true on the wrapper element itself; build_xml_string
consumes and strips it to render the wrapper and its single child on one line.
Hash an arbitrary XmlElement to its 8-character short hash. Exposed so
the upstream collision detector can request a deterministic fallback for
individual siblings without re-deriving the hash logic.