Skip to content

Question: Parsing camt.053 xml files #4

@Roba1993

Description

@Roba1993

Is it possible to also parse camt.053 xml files? I tried it with the following naive approach but failed:

let file = include_str!("../data/camt-053-P-CH-wsl-001.xml");

type Header = mx_message::header::bah_camt_053_001_08::BusinessApplicationHeaderV02;
type Body = mx_message::document::camt_053_001_08::BankToCustomerStatementV08;

let res = mx_message::from_mx_xml::<Header, Body>(file);
println!("{:?}", res);

Did I missed the right Header/Body or is it in general not supported and I need to implement it manually?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions