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

    Details

    • Estimated Complexity:
      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

        Activity

        Hide
        Claus Ibsen added a comment -

        Thanks for reporting, and providing a sample XML showing a working and non working use-case

        Show
        Claus Ibsen added a comment - Thanks for reporting, and providing a sample XML showing a working and non working use-case

          People

          • Assignee:
            Claus Ibsen
            Reporter:
            F. Baran Elis
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development