Hi,
have a look at the dsl:
http://anonsvn.jboss.org/repos/labs/labs/jbossesb/tags/JBESB_4_6/product/services/jbrules/src/main/resources/XPathLanguage.dsl
This rule expects an object of type org.jboss.soa.esb.message.Message
which contains the XML in its body.
Also note that a lot of stuff is
I remember seeing a sample in jboss-esb sample where they were able to use
xpath to query a xml file
[sample extract]
package com.jboss.soa.esb.routing.cbr
#list any import classes here.
import org.jboss.soa.esb.message.Message;
import org.jboss.soa.esb.message.format.MessageType;
expander XPat