michaelrsweet / mxml

Tiny XML library.
https://www.msweet.org/mxml
Apache License 2.0
426 stars 157 forks source link

Take xml loaded into a string and convert it back into regular xml format #289

Closed akorb1 closed 2 years ago

akorb1 commented 2 years ago

When a tree is created with newly created xml and then saved as a string, I would something to be able to take it out of string format and put it back into normal xml format for printing purposes.

michaelrsweet commented 2 years ago

@akorb1 If you want pretty-formatted XML, use a save callback to insert whitespace.