Uploaded image for project: '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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Won't Fix
    • 2.6.0
    • 3.0.0, Future
    • camel-core
    • 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")
      

      Attachments

        1. CAMEL-3697.txt
          10 kB
          Claus Ibsen

        Issue Links

          Activity

            People

              Unassigned Unassigned
              davsclaus Claus Ibsen
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: