netvl / xml-rs

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

Fix issue #168: Force XML document declaration to be output before 'characters' event #206

Closed brackleian closed 3 years ago

brackleian commented 3 years ago

The 'characters' writer event could not be used to output text after the document declaration, only before it or after the first XML element. This change ensures that the document declaration will be output before the text. Arbitrary text can still be output at the start of the file, if needed, by writing directly using the inner_mut method.

Addresses issue #168.

netvl commented 3 years ago

Thanks!