Appearance
Rule.io SDK / rcml/src / xmlToSms
Function: xmlToSms()
xmlToSms(
xml):SmsDocument
Defined in: rcml/src/sms/xml-to-sms.ts:78
Parse an XML string into an SmsDocument.
Parameters
xml
string
An XML string containing a single <rc-sms> root element.
Returns
The parsed document.
Throws
On malformed XML, wrong root tag, or invalid SMS RFM body.