xml-rs
xml-rs copied to clipboard
reader: add from_bytes() convenience function that strips any BOM
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.