Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5212

split().tokenizeXML("child", "parent").streaming() does not work correctly when parent's namespace declarations are separated with new line

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Unknown

    Description

      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

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            davsclaus Claus Ibsen
            belis F. Baran Elis
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment