When sending a request containing a valid XML body and an
Content-Type, Mockoon will parse the XML and allow you to create body response rules or use the
bodyRaw templating helpers. Mockoon uses the xml-js NPM package to convert the entering XML. Please note that the xml-js package converts XML into JSON in a particular way, as shown below:
Entering XML body:
JSON equivalent (compacted):
Please refer to xml-js documentation for more detail on how the XML is parsed.