Hi YP
do you have to use .xslt or can you use another method?
Can you just outline the purpose of converting the .json to .xml please?
Reason I ask is that if you want a response to come back in .xml or .json - you can use an Accept header on the request.
That is, if you add an 'Accept' header to your request with a value of 'application/xml'- this will force the endpoint to send back the response in .xml rather than .json or vice versa.
OR - if you just want to convert json to xml - there's an online converter here and it generated the following:
<root>
<SMS>
<element>
<Message><subject+message> </Message>
<to>+966874939494</to>
</element>
<element>
<Message><subject+message></Message>
<to>+96687499490</to>
</element>
</SMS>
</root>
It should be remembered that this isn't the only way to represent this in .xml - the 'to' tags could be represented as attributes rather than how they are represented above as elements - so it depends on your requirements.
I didn't understand why you added in your expected response to your post - was there a reason for that?
Cheers,
Rich