XML: Properly indent child elements

Includes test case