Re: Camel 2.12.1 org.xml.sax.SAXParseException

2013-11-06 Thread Claus Ibsen
Hi

Thanks for the sample code. Yeah it smells like a bug in the tokenize
xml you use in the splitter,
feel free to log a JIRA ticket
http://camel.apache.org/support



On Wed, Nov 6, 2013 at 8:56 AM, Cecilio Alvarez
cecilio.alva...@hotmail.com wrote:
 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.



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen


Camel 2.12.1 org.xml.sax.SAXParseException

2013-11-05 Thread Cecilio Alvarez
Hi,

in camel 2.12.1 when split a message this kind of xml tag doesn't work,
meanwhile in camel 2.11.0 works fine:

tag attribute=attribute/


org.xml.sax.SAXParseException; XML documents structures must start and end
within the same entity.

If I add:
tag attribute=attribute/tag

works fine. Is suppose to be the expected behaviour?

Thanks in advance!



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


Re: Camel 2.12.1 org.xml.sax.SAXParseException

2013-11-05 Thread Claus Ibsen
Can you show some of the route code you do for the splitting?

On Tue, Nov 5, 2013 at 4:05 PM, Cecilio Alvarez
cecilio.alva...@hotmail.com wrote:
 Hi,

 in camel 2.12.1 when split a message this kind of xml tag doesn't work,
 meanwhile in camel 2.11.0 works fine:

 tag attribute=attribute/


 org.xml.sax.SAXParseException; XML documents structures must start and end
 within the same entity.

 If I add:
 tag attribute=attribute/tag

 works fine. Is suppose to be the expected behaviour?

 Thanks in advance!



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



-- 
Claus Ibsen
-
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen