renamed saveXmlStyle to toString