Hi

I have an xml file that I am trying to split but for each split file I want
to include an attribute from the parent node. Suppose I have an "AllOrders"
document and it has a "BatchNumber" attribute.  The "AllOrders" node
contains many "Order" nodes. I have the following route, which works great.
Is there a simple way using Spring DSL to get the value of the BatchNumber
somewhere into my extract.

<route id="MySplitter">
   <from uri="activemq:queue:SomeQueue"/>
     <split>
        <xpath>/AllOrders/Order</xpath>
           <transform>
              <simple>
                 
             </simple>
          </transform>
          <to uri="activemq:queue:AnotherQueue"/>            
        </split>
</route>

--
View this message in context: 
http://camel.465427.n5.nabble.com/Splitting-XML-but-including-attribute-from-parent-document-tp5709636.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to