The current writer concept does not allow formatting the document in this style. "afterNode" will be called always, even after text nodes. There is no context given to "afterNode" so its impossible to decide whether or not to place a newline. The same goes for the indentation. The writer concept should be extended to allow for this style of formatting (as its very common)
Copied from original issue: lodo1995/experimental.xml#37
You are right. The hooks are not complete. I need to find the best balance between having the maximum customization and keeping the number of hooks reasonable.
From @Ingrater on November 2, 2016 15:44
I have a xml document that looks like this
The current writer concept does not allow formatting the document in this style. "afterNode" will be called always, even after text nodes. There is no context given to "afterNode" so its impossible to decide whether or not to place a newline. The same goes for the indentation. The writer concept should be extended to allow for this style of formatting (as its very common)
Copied from original issue: lodo1995/experimental.xml#37