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

Add type converter for Saxon data types

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.1
    • 2.15.0
    • camel-saxon
    • None
    • Unknown

    Description

      Camel does currently not contain any type converters for Saxon specific data types, particularily net.sf.saxon.om.NodeInfo (and List<NodeInfo>).

      This will lead to errors or an empty result (depending on the result type) if e.g. an XPath is executed with a SAXSource documentType with a Saxon XPathFactory as in

      from("direct:test")
      .setBody(xpath("/a/b/c", Document.class)
      .documentType(SAXSource.class)
      .factory(new XPathFactoryImpl())
      )

      The provided patch adds the appropriate type converters (and the unit tests for them) to camel-saxon.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            siano Stephan Siano
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: