I have made the simplest example to replicate this error:
<?xml version="1.0" encoding="UTF-8"?>
<mule>
<set-variable value="#[output application/json indent=false --- vars.dbResult[0][0] mapObject ((value, key) -> {(key): value})]" />
</mule>
It works with xmlStreaming.newReader() but it throws with xmlStreaming.newGenericReader().
Stacktrace:
Caused by: nl.adaptivity.xmlutil.XmlException: 3:98 - Illegal ]]>
at nl.adaptivity.xmlutil.core.KtXmlReader.exception(KtXmlReader.kt:279)
at nl.adaptivity.xmlutil.core.KtXmlReader.error(KtXmlReader.kt:275)
at nl.adaptivity.xmlutil.core.KtXmlReader.pushRegularText(KtXmlReader.kt:1176)
at nl.adaptivity.xmlutil.core.KtXmlReader.parseStartTag(KtXmlReader.kt:861)
at nl.adaptivity.xmlutil.core.KtXmlReader.nextImplBody(KtXmlReader.kt:440)
at nl.adaptivity.xmlutil.core.KtXmlReader.next(KtXmlReader.kt:1796)
I have made the simplest example to replicate this error:
It works with
xmlStreaming.newReader()but it throws withxmlStreaming.newGenericReader().Stacktrace: