toXML() is running and working