Skip to main content

Module envelope

Module envelope 

Source
Expand description

Utilities for detecting ISO 20022 message type from raw XML.

ISO 20022 messages are wrapped in a root element (e.g. <Document> or <AppHdr>) whose xmlns attribute carries the message namespace in the form:

urn:iso:std:iso:20022:tech:xsd:{family}.{msg}.{variant}.{version}

For example urn:iso:std:iso:20022:tech:xsd:pacs.008.001.13 yields:

  • family → "pacs"
  • msg_id"008"
  • variant → "001"
  • version → "13"

Structs§

MessageId
Message type identifier extracted from an ISO 20022 XML namespace URI.

Functions§

detect_message_type
Extract the ISO 20022 message type from the root element’s xmlns attribute.
parse_namespace
Parse an ISO 20022 namespace URI into a MessageId.