Functions§
- extract_
xml_ declaration_ from_ raw - 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.
- extract_
xmlns_ from_ raw - Extract xmlns attribute from raw XML (quickxml_to_serde drops it). Returns Some(value) if found, None otherwise.
- parse_
element_ unified - parse_
to_ xml_ object - parse_
unique_ id_ element - Get a unique ID for an element, using configured fields or a hash.
- parse_
xml - Parses an XML file from a path.
- parse_
xml_ from_ str - Parses XML from a string. The file_path is used for error logging only. Uses custom parser that preserves CDATA sections (output as #cdata key).
- strip_
whitespace_ text_ nodes - Remove meaningless whitespace-only #text nodes from the XML structure.