edi_xml_oca
Provides handy tools for dealing with XML files in the context of EDI exchanges.
Key Features
- edi.xml.handler: Requires a schema_path supplied as module:path in the work context so XML payloads are always tied to an explicit XSD schema.
- edi.xml.handler: Parses XML strings into Python dictionaries via xmltodict to expose structured content to downstream EDI components.
- edi.xml.handler: Validates XML content against the resolved XSD schema and can either raise exceptions or return readable error messages based on configuration.
- xmler: Converts Python dictionaries—including namespaces, attributes, and collections—into XML strings with optional pretty printing for outbound EDI messages.