It seems to me that there's no way of making sure REXML::Formatters::Pretty can use \t instead of white-space for the indentation strategy in the XML Tree. The only thing I can do is to define how many white spaces are used per indentation level.
Am I wrong?
Not sure why
REXMLlibrary does not provide you with this option since it could definitely support it internally but you can just roll your own formatter:Now you can specify your own indentation level and a indent style e.g.
I used "h" to show how the indentation works as
\twill not show up in$stdoutbut in you case this would be