Updated the saveToXml function, forgot to make start/end tags "line"