added arrayToXml method for weChatApp