Below is my xml, I want to remove complete data including
<onward-solutions>
from the below xml.
var xml='
<search-result>
<onward-solutions>
<solution index="1">
</solution>
<solution index="2">
</solution>
<solution index="3">
</solution>
</onward-solutions>
<return-solutions>
<solution index="1">
</solution>
<solution index="2">
</solution>
<solution index="3">
</solution>
</return-solutions>
</search-result>
';
Below is the estimated output from xml:
<search-result>
<return-solutions>
<solution index="1">
</solution>
<solution index="2">
</solution>
<solution index="3">
</solution>
</return-solutions>
</search-result>
Can any one help me how to get the expected result?