2 Replies Latest reply on Oct 3, 2011 3:12 AM by eruiz_eruiz

    XPath change to values in spite to XML message

    eruiz_eruiz

      Hi,

       

      I have the body below:

       

      <m:Location xmlns:m="http://www.incits.org/RTLS/"

      xmlns:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"

      xmlns:xsd="http://www.w3.org/1999/XMLSchema"

      xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">

      <m:Blink>

      <m:ID>THE_ID</m:ID>

      <m:Coord>

      <m:X>203</m:X>

      <m:Y>392</m:Y>

      <m:Z>2</m:Z>

      </m:Coord>

      </m:Blink>

      </m:Location>

       

      I need the inner element Blink, so I apply the following transformation:

       

                <convertBodyTo type="java.lang.String"/>

                <setBody>

                  <xpath resultType="String">/ns:Location/ns:Blink</xpath>

                </setBody>

       

      The xpath processor give me only the values, not the Blink element:

       

      THE_ID2033922

       

      Any ideas?

       

      Thanks