Module xml

Module xml 

Source

Structs§

XmlConfig
Configuration for XML serialization

Enums§

XmlError
Error type for XML operations

Functions§

create_camt053_xml
Helper function to create XML for camt.053 message
create_pacs008_xml
Helper function to create XML for a specific message type
create_pain001_xml
Helper function to create XML for pain.001 message
from_mx_xml
Parse complete MX XML with envelope
from_mx_xml_envelope_str
Deserialize complete MX XML envelope (with AppHdr) to typed structs for validation This validates both the header and document structure
from_mx_xml_str
Deserialize XML string directly to typed struct for validation (Document only) This validates the XML structure and content by attempting deserialization
from_mx_xml_to_json
Helper function to parse XML to JSON Value (for dataflow plugins) This function parses XML and converts it to a JSON structure
json_to_typed_xml
Convert JSON Value to MX XML using typed document structs This function deserializes JSON into the appropriate typed struct, then uses quick-xml’s serializer which correctly handles arrays and attributes.
to_mx_xml
Serialize any MX message to complete XML with envelope
to_mx_xml_with_configDeprecated
Deprecated: Use json_to_typed_xml instead This function is kept for backward compatibility but now delegates to json_to_typed_xml
xml_to_json_via_document
Parse XML to JSON using typed ISO20022 document structures This is the correct way to parse XML that preserves arrays and complex structures