camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lexsoto <>
Subject Re: Split XPath JBoss
Date Mon, 04 Oct 2010 20:40:53 GMT

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);"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"
<category_definition group_of_company="*">
        <text>BLAH BLAH</text>

So the problem may be in the use of the @Xpath annotations on the method
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:
Sent from the Camel - Users mailing list archive at

View raw message