Closed jonasbb closed 1 year ago
This isn't really related to deserialization specifically. The markup you're using is not a proper XML — well-formed XML always only allows one root element. If you have multiple elements, they all must be descendants of a single root element.
So you were relying on a what I consider a bug. For backwards compatibility I've kept old behaviour as an option — you need to enable allow_multiple_root_elements
. Or fix the XML.
I've changed default config in 0.8.11 to allow ill-formed roots again.
I noticed a failing test in my CI. I am using
xml-rs
viaserde-xml-rs
. The breaking change occurred between v0.8.8 and v0.8.9. The problem also occurs in v0.8.10.main.rs
Cargo.toml
One possible commit could be this https://github.com/netvl/xml-rs/commit/ae9d83b3aec66ed6d8ac9dd5746d33d523c858cc since it has something to do with multiple root elements.