On Sun, Oct 30, 2011 at 9:38 PM, Christian Müller
<christian.muel...@gmail.com> wrote:
> This is a very good improvement. Thank you Claus!
>
> We should also have a "solution for the enterprise" users which often use
> namespaces like this:
> <records xmlns="http://foo"; xmlns:bar="http://bar";>
>  <record id="1">
>  </record>
>  <record id="2">
>  </record>
>  <record id="3">
>  </record>
>  ....
>  <record id="N">
>  </record>
> </records>
>
> After splitting the large XML files into its individual parts, we should
> have something like:
> <record id="1" xmlns="http://foo"; xmlns:bar="http://bar";>
> </record>
>

Yeah that would be something we need to look into as well.

When using the StAX / JAXB / DOM API in the JDK then it can support
this as well. But I have noticed a significant performance impact.

So with the tokenizer we could probably add support for the end user
provides a root tag, which then the tokenizer will grab the namespace
declarations from, and inject into the splitted stream messages.

That should support the use-case outlined by Christian, which is also
the uses cases I have encountered by far the most.
Setting namespaces on the root tag once.






> Best,
> Christian
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to