Android Java Passing XML parser



I've written a program to get data from my XML file in Eclipse, and I've printed to a text view to ensure that the try is working, but it's not passing the data, but I'm unsure as to whether I've got the wrong parameters or I am calling it incorrectly so any help would be greatly appreciated.



public class AnimalList extends Activity {
...
protected void onCreate(Bundle savedInstanceState){
...
try{
....
parseXML(parser);
}


I know the above is working by printing to a text view but next i have



private void parseXML(XmlPullParser parser) throws XmlPullParserException,IOException


And then the code within it isn't doing anything, so hoping someone can point out if I'm passing it correctly? Within the second it's just putting data into an array, but if I put a text view output before I do anything in it, it's not doing anything which makes me think it's not passing data.


Thanks.


No comments:

Post a Comment