Camel
  1. Camel
  2. CAMEL-3697

XPath expression should accept an expression to more easily allow dynamic XPath text to be defined in the DSL

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: 3.0.0, Future
    • Component/s: camel-core
    • Labels:
      None

      Description

      See
      http://stackoverflow.com/questions/5067634/xpath-from-string

      In the ExpressionClause the xpath builder is only accepting a String as they XPath text. We should provide a method which accepts a Camel Expression as well.

      So you can do

        .when().xpath(simple("/foo:${header.variable}")).to("mock:y")
      
      1. CAMEL-3697.txt
        10 kB
        Claus Ibsen

        Issue Links

          Activity

          Claus Ibsen made changes -
          Assignee Claus Ibsen [ davsclaus ]
          Claus Ibsen made changes -
          Link This issue is related to CAMEL-4519 [ CAMEL-4519 ]
          Claus Ibsen made changes -
          Fix Version/s Future [ 12315692 ]
          Fix Version/s 3.0.0 [ 12315691 ]
          Fix Version/s 2.8.0 [ 12316226 ]
          Claus Ibsen made changes -
          Attachment CAMEL-3697.txt [ 12472154 ]
          Claus Ibsen made changes -
          Field Original Value New Value
          Fix Version/s 2.8.0 [ 12316226 ]
          Fix Version/s 2.7.0 [ 12316021 ]
          Claus Ibsen created issue -

            People

            • Assignee:
              Unassigned
              Reporter:
              Claus Ibsen
            • Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:

                Development