transform message between xml and NSObject