Hi,

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:

        <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>

Thanks!



--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-2-12-1-org-xml-sax-SAXParseException-tp5742659p5742690.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to