java - Get Value from XML string -


i trying value of "msg" returned xml response, can see "msg" found twice. how can values of "msg" returned response?

here sample of returned value "msg" 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 not start uppercase letter" replacements="this" context="this 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 following word starts vowel sound, e.g. 'an article', 'an hour'" replacements="an" context="this error" contextoffset="8" offset="8" errorlength="1" category="miscellaneous" locqualityissuetype="misspelling" /> </matches> 

you try google's recommended xml parsing method described in https://developer.android.com/training/basics/network-ops/xml.html


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

The canvas has been tainted by cross-origin data in chrome only -