Hi all..!
Whenever I send a message containing an xml having Hello "World" through an api, only Hello is sent in the xml when viewed with a log and rest of the text after " (double quots) is not getting displayed.. I wonder what could be the reason. If there is a Packet then before sending the Packet in a list called Post which also contains to, from id, type etc...Now I do [binary_to_list(xml:element_to_binary(Packet))] and then while sending Message containing all details mentioned before, I do list_to_binary(Post) where Post contains Packet along with other details like id, from, to etc.. Consider this message being sent though post method :
<message xml:lang='en' from='abhi@XXX.com' to='amogh@XXX.com' id='Ba1Ek-7575021' chat_sent='1485529140673' type='chat'> <subject>request_message</subject> <body>Hello "World"</body> <request xmlns='urn:xmpp:receipts'/> </message>
Post method: = > {Url, [], "application/x-www-form-urlencoded", list_to_binary(Post)},
I put logs to check value of xml while sending . If I send eg. Hel"lo" then what I see is only Hel and no other text is displayed in logs. PLease help me.