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

Claus Ibsen commented on CAMEL-5212:
------------------------------------

Thanks for reporting, and providing a sample XML showing a working and non 
working use-case
                
> split().tokenizeXML("child", "parent").streaming() does not work correctly 
> when parent's namespace declarations are separated with new line
> -------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5212
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5212
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.9.1
>            Reporter: F. Baran Elis
>            Assignee: Claus Ibsen
>              Labels: split, tokenizeXML
>             Fix For: 2.9.3, 2.10.0
>
>
> when I try to split a big XML file using split().tokenizeXML("child", 
> "parent").streaming() and if the parent's namespace declaration are separated 
> with new line in the XML file, child element does not inherit the namespace 
> declarations. When all declarations are on the same line it works ok.
> <?xml version="1.0" encoding="UTF-8"?>
> <parent xmlns:ns1="ns1.url"
>         xmlns:ns2="ns2.url">
>   <child></child>
>   <child></child>
> </parent>
> doesn't work but
> <?xml version="1.0" encoding="UTF-8"?>
> <parent xmlns:ns1="ns1.url" xmlns:ns2="ns2.url">
>   <child></child>
>   <child></child>
> </parent>
> is OK

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to