Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.12.1
-
None
Description
When trying to split a xml containing this:
<tag name=name/>
I encountered the following exception : org.xml.sax.SAXParseException; XML documents structures must start and end within the same entity.
Extract from my route:
the input is:
<BOOKS>
<LIBRARY name=Library1/>
<BOOK name=Book1/> <-----this kind of tag doesn't work.
<BOOK name=Book2/>
</LIBRARY>
<LIBRARY name=Library2/>
<BOOK name=Book1></BOOK> <---this works.
<BOOK name=Book2></BOOK>
</LIBRARY>
</BOOKS>
The splitting route:
<route>
<from uri="activemq:queue.TEST"/>
<choice>
<when>
<xpath>/BOOKS</xpath>
<split streaming="true">
<tokenize token="LIBRARY" xml="true"/>
<to uri="activemq:example.LIBRARY"/>
</split>
</when>
<otherwise>
<log message="Not a Books xml."/>
</otherwise>
</choice>
</route>
This issue is not part of camel 2.11.0.
Attachments
Issue Links
- is related to
-
CAMEL-6004 Tokenize XML does not support self-closing XML tokens
- Resolved