i trying use jackson xml github , parse following microsoft dto url listview within android:
to get:
title
imageurl
snippet
feedsource -> name
do first parse in xml, or can force response request json? tried reading gson , looked @ windows azure cloud (where url came from) couldnt see examples.
as in comment, gson can parse json (not xml!), makes no sense use if want parse xml file 1 have... (in fact i'll retag post). makes less sense convert xml json pointed out in comment...
since have xml file, need parse xml data java classes, , in order need xml parser. in android, recommend use parser xmlpullparser. there complete documentation, including many step-by-step examples in andoid developers site.
note although recommend parser android, can use other xml parsers, example can use dom parser, perhaps basic 1 , don't need external library, in this example. in fact in last example precisely build listview
xml file you're trying do...
Comments
Post a Comment