I am working on struts2. I am calling a simple web service which gives me list of all countries. The result I am getting is in string formal but actually its a xml output. So how can I get the result and in simple string. when I print it in console I get result like this:
<NewDataSet>
<Table>
<Name>Zambia</Name>
</Table>
<Table>
<Name>Zimbabwe</Name>
</Table>
</NewDataSet>
this is encapsulated as string. can anyone help me to get all countries in normal string?