I am trying to get the value of "msg" from the returned XML response, As you can see "msg" is found twice. How can i get all values of "msg" from the returned response?
Here is a sample of the returned value "msg" is found in error:
<?xml version="1.0" encoding="UTF-8" ?>
<matches software="LanguageTool" version="2.6-SNAPSHOT" buildDate="2014-05-26 09:16">
<language shortname="en-US" name="English (US)" />
<error fromy="0" fromx="0" toy="0" tox="4" ruleId="UPPERCASE_SENTENCE_START" msg="This sentence does not start with an uppercase letter" replacements="This" context="this is a error" contextoffset="0" offset="0" errorlength="4" category="Capitalization" locqualityissuetype="typographical" />
<error fromy="0" fromx="8" toy="0" tox="9" ruleId="EN_A_VS_AN" msg="Use 'an' instead of 'a' if the following word starts with a vowel sound, e.g. 'an article', 'an hour'" replacements="an" context="this is a error" contextoffset="8" offset="8" errorlength="1" category="Miscellaneous" locqualityissuetype="misspelling" />
</matches>
You could try Google's recommended XML parsing method as described in https://developer.android.com/training/basics/network-ops/xml.html