I’m making a webservice call in my Java code and getting the response as String with the below data.
<DocumentElement>
<ResultSet>
<Response>Successfully Sent.</Response>
<UsedCredits>1</UsedCredits>
</ResultSet>
</DocumentElement>
Now, I want to parse the below response String and get the value of <Response> tag alone for further processing. Since, I’m getting only the CDATA content how to parse the String content?
You obviously need XML parser for this one. Lets say the above is stored in a
Stringvariable namedcontentFollow the above parser routine for larger data sets. Use loops for multiple similar data sets. Hope that helps.