added Tizen support to toXml function