I have the following request:
<request>
<sender>A</sender>
<id>01</id>
<parameters>
<parameter value="1" />
<parameter value="2" />
</parameters>
</request>
I want to send the response:
<response>
<id>01</id>
<parameters>
<parameter value="1" />
<parameter value="2" />
</parameters>
<result>3</result>
</response>
So most of the response is the same : the id, the parameters. Is there a way to get a subset of xml full text with an xpath expression? I would like to get :
<id>01</id>
<parameters>
<parameter value="1" />
<parameter value="2" />
</parameters>
Optional question: is it possible to get only one string ? Basically I want the result of my XPath evaluation to be :
"<id>01</id>
<parameters>
<parameter value="1" />
<parameter value="2" />
</parameters>"
Thanks!