shepmaster / sxd-document

An XML library in Rust
MIT License
154 stars 36 forks source link

Added writer setting to include the encoding in the declaration #71

Closed danieldulaney closed 5 years ago

danieldulaney commented 5 years ago

For silly enterprise-y reasons, some other software I use breaks if the encoding field is missing. This adds support on the Writer to include it in output.

I called it write_encoding rather than just encoding to leave that name available for a future setting to actually choose the encoding itself, rather than just whether or not to write the encoding field.

shepmaster commented 5 years ago

Released as 0.3.2