[xml mode] Improved indentation for attributes and multi-line tags

Issue #1694