This is a follow-up question to How to pretty print XML from the command line?.
Is there any tool in libxml2 that will allow me to align the attributes of each node as well? I have a large XML document whose logical structure I cannot change, but I would like to turn
<a attr="one" bttr="two" tttr="three" fttr="four"/>
into
<a attr = "one"
bttr = "two"
tttr = "three"
fttr = "four"
longer = "attribute" />