changes made in toXML, finally using text converters