Finished toXML.