Possible Duplicate:
How to parse xml using different parent nodes in android
I am making an application in which i have to parse xml data, and i have made that, but i am using only single node in my xml file like, but the thing is now i want to add one more node in my xml file namely, and attributes in both the nodes would be same, and i am using this code, so please let me know what are the changes required to add node in same program, because i want whenever user will click on listview item node row then only data related to should be shown in next activity, and vice-versa :-
// XML node keys
static final String KEY_SONG = "song"; // parent node
static final String KEY_ID = "id";
static final String KEY_TITLE = "title";
static final String KEY_ARTIST = "artist";
static final String KEY_DURATION = "duration";
static final String KEY_THUMB_URL = "thumb_url";