Add alternate signature to toXml() method.