media-io / yaserde

Yet Another Serializer/Deserializer
MIT License
175 stars 57 forks source link

yaserde deserialization gets stuck on matching EndDocument #113

Open Armiixteryx opened 3 years ago

Armiixteryx commented 3 years ago

Hello,

I have found an unusual behavior on yaserde deserialization.

I have a big XML that I try to deserialize into matching Rust structs. yaserde seems to deserialize correctly, except that it gets stuck in a loop when processing EndElement, showing following msg (trace activated):

Struct AboutVersion @ 3: matching EndDocument (probably located in this loop)

As for the XML I am trying to deserialize, it is a (currently private) long file in MISMO format. I am using yaserde to emit XML from the Rust structs, that works just fine. Now I have issues to do the inverse process (deserialize from XML to my Rust structs).

I appreciate any help to fix this, if possible.

Thank you.