You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "F. Baran Elis (JIRA)" <ji...@apache.org> on 2012/04/24 16:01:36 UTC

[jira] [Created] (CAMEL-5212) split().tokenizeXML("child", "parent").streaming() does not work correctly when parent's namespace declarations are separated with new line

F. Baran Elis created CAMEL-5212:
------------------------------------

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


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

        

[jira] [Commented] (CAMEL-5212) split().tokenizeXML("child", "parent").streaming() does not work correctly when parent's namespace declarations are separated with new line

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
    [ 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

        

[jira] [Resolved] (CAMEL-5212) split().tokenizeXML("child", "parent").streaming() does not work correctly when parent's namespace declarations are separated with new line

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-5212.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0
                   2.9.3
    
> 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

        

[jira] [Assigned] (CAMEL-5212) split().tokenizeXML("child", "parent").streaming() does not work correctly when parent's namespace declarations are separated with new line

Posted by "Claus Ibsen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen reassigned CAMEL-5212:
----------------------------------

    Assignee: Claus Ibsen
    
> 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
>
> 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