Nav
You are viewing an older version of this section. Click here to navigate to the latest version.

XPath Extractor Transformer

New in Mule 2.2, the XPath extractor transformer evaluates an XPath expression against the current message and returns the result using the JAXP libraries. By default, a string result of the XPath expression is returned. The transformer can be configured to return other types of results such as a Node, NodeSet, Boolean, or Number.

You configure the XPath transformer as follows:


       
    
1
<xpath-extractor-transformer name="title" expression="/book/title" resultType="NODESET"/>