Skip to content

Illegal ]]> while parsing valid XML with generic reader #266

@morki

Description

@morki

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    indevThe issue is fixed/implemented in the dev branch

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions