Hi,

I need to extract the xml string starting from <results> and ending from
</results>. (xml is given below)

What is the xpath i should use in .net .

Follwoing are not working :
1 . /Envelope/Body/GetResponse/GetResult/results
2.
/soap:Envelope/soap:Body/GetMCodePCodeResponse/GetMCodePCodeResult/results



 <?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xmlns:xsd="
http://www.w3.org/2001/XMLSchema";>
<soap:Body>
<GetResponse xmlns="http://temp.com/";>
<GetResult>
<results xmlns="">
<input>
<id>3c7e50bb-004160d907</id>
</input>
<output>
<list a="222" b="2222"></list>
</output>
<error></error>
</results>
</GetResult>
</GetResponse>
</soap:Body>
</soap:Envelope>





Out put should be

<results xmlns="">
<input>
<id>3c7e50bb-004160d907</id>
</input>
<output>
<list a="222" b="2222"></list>
</output>
<error></error>
</results>

Reply via email to