Change info2xml to toXML