netvl / xml-rs

An XML library in Rust
MIT License
459 stars 110 forks source link

reader: add from_bytes() convenience function that strips any BOM #213

Closed tp-m closed 1 year ago

tp-m commented 2 years ago

XML coming from external sources sometimes has an UTF-8 marker at the beginning, which is invalid UTF-8 and will cause parse errors, so add a from_bytes() convenience method that strips such BOMs at the beginning.

tp-m commented 1 year ago

No longer needed after commit 7e5b2c7fcd23ec7fb50d3da63620c81f3bf94de0 I think.