You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2013/11/08 16:15:17 UTC

[jira] [Commented] (CAMEL-6940) tokenize xml for splitter throwing org.xml.sax.SAXParseException; XML documents structures must start and end within the same entity.

    [ https://issues.apache.org/jira/browse/CAMEL-6940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817331#comment-13817331 ] 

Aki Yoshida commented on CAMEL-6940:
------------------------------------

hi,
i can look into this.
but could you attach the input file to this jira ticket?
your pasted xml is missing the quotation marks and it does't look like the input you are actually using.
and where are you getting the parsing exception?

thanks.
aki

> tokenize xml for splitter throwing org.xml.sax.SAXParseException; XML documents structures must start and end within the same entity. 
> --------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-6940
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6940
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.12.1
>            Reporter: Cecilio Alvarez
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.1#6144)