Hi Siano, Thanks I tried this code
String bodyStr = exchange.getIn().getBody(String.class); DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder; builder = factory.newDocumentBuilder(); Document document = builder.parse(new InputSource(new StringReader(bodyStr))); XPath xPath = XPathFactory.newInstance().newXPath(); String address1 = xPath.evaluate("//loc:address/text()", document); String address2 = xPath.evaluate("/loc:getLocation/loc:address", document); but i get error when i try to access address in both ways using xpath net.sf.saxon.trans.XPathException: Prefix loc has not been declared Anything I am missing ? -- View this message in context: http://camel.465427.n5.nabble.com/Difficulty-in-extracting-data-from-CxfPayload-tp5768422p5768458.html Sent from the Camel - Users mailing list archive at Nabble.com.