The default behavior of Element.toXML()
seems to be showing up the result as a single line. Is it possible to have it show the result in multiple lines, in a hierarchical way?
Example:
This is what I'd like to get
<root>
<Fraction hash="108e898f" />
<Integer hash="19498483" />
</root>
and this is what I'm getting at the moment:
<root><Fraction hash="108e898f" /><Integer hash="19498483" /></root>
Thanks