It's somewhat complex and it has to deal with deserializing content of its two variants.
Proposed solution: find a way for strong-xml to handle mixed content elements correctly and get content handling delegated to Expression and FormalExpression implementations of XmlRead. Hopefully this will make this whole thing easier to comprehend and maintain.
Implementation referred to: https://github.com/bpxe/bpxe/blob/master/bpxe-bpmn-schema/src/expr.rs
It's somewhat complex and it has to deal with deserializing content of its two variants.
Proposed solution: find a way for strong-xml to handle mixed content elements correctly and get content handling delegated to
Expression
andFormalExpression
implementations ofXmlRead
. Hopefully this will make this whole thing easier to comprehend and maintain.