<?xml version="1.0"?> <bookstore> <book category="cooking"> <title lang="en">Everyday Italian</title> <author>Giada De & Laurentiis</author> <year>2005</year> <price>30.00</price> <notes><![CDATA[ Please assign book review to Barnes & Nobel - 114-223-234 1. Please upload the sketch and photos as soon as possible after the initial visit. 2. Please upload the initial report with 24 hours of initial on-site Thank you]]></notes> </book> </bookstore>Use transformation message with following syntax to read desired data using XPath expression
%dw 2.0
output application/java
---
XmlModule::xpath('bookstore/book/author/text()', payload.^raw as String {encoding: "ISO-8859-1"}, {})[0]
Method 2: Payload as raw String
%dw 2.0
output application/java
---
XmlModule::xpath('bookstore/book/author/text()', payload.^raw as String , {})[0]
001116607

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.