Skip to content

Rule.io SDK


Rule.io SDK / rcml/src / xmlToRcml

Function: xmlToRcml()

xmlToRcml(xml): RcmlDocument

Defined in: rcml/src/email/xml-to-rcml.ts:102

Parse an RCML XML string into an RcmlDocument.

Parameters

xml

string

The RCML XML string to parse.

Returns

RcmlDocument

The parsed document.

Throws

On any failure (malformed XML, invalid RFM body inside a text element, missing root).