added XmlSerializer for string output of xml

https://developer.mozilla.org/en-US/docs/XMLSerializer