write-file can now output XML files in proper indentation and with no
surrounding EOLs for text nodes.