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

xpath - Add documentType option to xml dsl

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      See nabble
      http://camel.465427.n5.nabble.com/Is-it-possible-to-set-the-documentType-on-an-XPath-in-XML-DSL-Spring-Blueprint-td5760613.html

      eg you can do in java dsl

            from("file://target/file/xpathsplit") 
                          // set documentType to org.xml.sax.InputSource then Camel will use SAX to split the file 
                          .split(xpath("/persons/person").documentType(InputSource.class)).streaming() 
                          .to("mock:splitted"); 
      

      We need to be able to set documentType in the xml dsl.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: