Skip to main content

Module parsers

Module parsers 

Source

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.