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

Cannot do XQuery on file data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.7.0
    • 2.8.0
    • camel-saxon

    Description

      It is not possible to do an XQuery filter on a file source:

      <route>
      <from uri='ftp://username@localhost/?password=password'/>
      <choice>
      <when>
      <xquery>/root[@name='James']</xquery>
      <to uri="jmq:SomeQueue"/>
      </when>
      <otherwise>
      <rollback/>
      <otherwise>
      </choice>
      </route>

      It works if you use <xpath> instead of <xquery> but I need the XPath 2.0 support available in <xquery> do to date/time processing.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            mikaelstaldal Mikael Ståldal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: