Parse SCXML text into its <scxml> element.
<scxml>
Browsers have a DOMParser; Node, Bun and Deno don't, so pass one there (any standards-compliant implementation, e.g. happy-dom's or linkedom's).
DOMParser
Optional
code: "SCXML_NO_DOMPARSER" when no parser is available, code: "SCXML_PARSE" when the text isn't well-formed XML.
code: "SCXML_NO_DOMPARSER"
code: "SCXML_PARSE"
Parse SCXML text into its
<scxml>element.Browsers have a
DOMParser; Node, Bun and Deno don't, so pass one there (any standards-compliant implementation, e.g. happy-dom's or linkedom's).