Tag printing fixes

Fix generated xml so that string content is not altered by whitespace. String content was formatted by adding whitespace such as leading spaces and linefeeds. This is actually altering the content and is wrong. This change places string content directly between the start and end tags with no leading or trailing spaces or line feeds.