eminence / xmltree-rs

Reads an XML file into a simple tree structure
MIT License
39 stars 30 forks source link

Add write_with_config() #15

Closed pizzaiter closed 6 years ago

pizzaiter commented 6 years ago

Add a write_with_config() function to Element. This is useful to enable pretty printing.

pizzaiter commented 6 years ago

@eminence It would be awesome if you could merge this. Or is there anything I need to change?

eminence commented 6 years ago

Sorry for missing this. Looks pretty good to me! I'll try to merge and publish it tonight

eminence commented 6 years ago

Pushed and published on crates.io as v0.8.0. Thanks!

Please be aware that I included a breaking API change in this new version -- the write methods now return a Result (instead of panicing on IO error)

pizzaiter commented 6 years ago

🎉 Thanks!