More findings. I've Modified my bean method to this: public void processImprint(Node node) throws TransformerException { TransformerFactory transfac = TransformerFactory.newInstance(); Transformer trans = transfac.newTransformer(); trans.setOutputProperty(OutputKeys.INDENT, "yes"); StringWriter sw = new StringWriter(); StreamResult out = new StreamResult(sw); DOMSource source = new DOMSource(node); trans.transform(source, out); log.info("Node: " + node + " XML: " + sw.toString()); }
Looks like the correct XML is being received by the method: Node: [category_definition: null] XML: <?xml version="1.0" encoding="UTF-8"?> <category_definition group_of_company="*"> <fixed_part>IMP</fixed_part> <variable_part>BLAH</variable_part> <text>BLAH BLAH</text> </category_definition> So the problem may be in the use of the @Xpath annotations on the method parameters!? I could just write code to extract the values from the node object, but isn't the @XPath supposed to do that for me? -- View this message in context: http://camel.465427.n5.nabble.com/Split-XPath-JBoss-tp3198294p3198367.html Sent from the Camel - Users mailing list archive at Nabble.com.