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

Tokenize XML does not support child elements with names similar to their parent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.11.1
    • 2.10.7, 2.11.2, 2.12.0
    • camel-core
    • None
    • Unknown

    Description

      This XML will not split on Trip, as Trip has a child which starts with Trip
      <Trip>
      <Triptype>
      </Triptype>
      </Trip>

      The bug was introduced in https://issues.apache.org/jira/browse/CAMEL-6004
      I believe the regex in TokenXMLExpressionIterator needs to be fixed

      see enclosed test

      Attachments

        1. TokenizerTest.java
          1 kB
          Per Jørgen Walstrøm

        Issue Links

          Activity

            People

              njiang Willem Jiang
              pjwalstrom Per Jørgen Walstrøm
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: