add method toXml()