plugins/xml-pack: Implement xml formatter
This is upstreaming functionality of a plugin of mine.
All assignments to xmlTreeIndentString
are statically allocated, as creating such strings using allocations
would either require leaking or risking double-frees.
Range-formatting is not supported