<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic cSetBody namespace in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/cSetBody-namespace/m-p/2307483#M78919</link>
    <description>Hi,
&lt;BR /&gt;Could someone telle me how to declare specific namespace to use in the xpath expression of a cSetBody ?</description>
    <pubDate>Sat, 16 Nov 2024 12:18:40 GMT</pubDate>
    <dc:creator>ytuzet</dc:creator>
    <dc:date>2024-11-16T12:18:40Z</dc:date>
    <item>
      <title>cSetBody namespace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cSetBody-namespace/m-p/2307483#M78919</link>
      <description>Hi,
&lt;BR /&gt;Could someone telle me how to declare specific namespace to use in the xpath expression of a cSetBody ?</description>
      <pubDate>Sat, 16 Nov 2024 12:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cSetBody-namespace/m-p/2307483#M78919</guid>
      <dc:creator>ytuzet</dc:creator>
      <dc:date>2024-11-16T12:18:40Z</dc:date>
    </item>
    <item>
      <title>Re: cSetBody namespace</title>
      <link>https://community.qlik.com/t5/Talend-Studio/cSetBody-namespace/m-p/2307484#M78920</link>
      <description>Self reply: 
&lt;BR /&gt;I've created a bean with annotations. 
&lt;BR /&gt;The Xpath annotation allows to specify a namespace: 
&lt;BR /&gt; 
&lt;PRE&gt;package beans;&lt;BR /&gt;import org.apache.camel.language.NamespacePrefix;&lt;BR /&gt;import org.apache.camel.language.XPath;&lt;BR /&gt;import org.apache.commons.codec.binary.Base64;&lt;BR /&gt;&lt;BR /&gt;public class Decode64XmlIn {&lt;BR /&gt;		public String process(@XPath(&lt;BR /&gt;				value = "//bus:xmlIn",&lt;BR /&gt;				namespaces = @NamespacePrefix(&lt;BR /&gt;				prefix = "bus",&lt;BR /&gt;				uri = "http://business")) String body) throws Exception {&lt;BR /&gt;			return ( new String(Base64.decodeBase64(body.getBytes())));&lt;BR /&gt;		}&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2012 15:21:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/cSetBody-namespace/m-p/2307484#M78920</guid>
      <dc:creator>ytuzet</dc:creator>
      <dc:date>2012-04-17T15:21:42Z</dc:date>
    </item>
  </channel>
</rss>

