You could use sax parser to read the xml: http://developer.android.com/reference/org/xml/sax/XMLReader.html
A tutorial is here: http://www.anddev.org/parsing_xml_from_the_net_-_using_the_saxparser-t353.html What's the best way to store your data depends on what you want to do with it afterwards. There are various ways, i.e. store it in a sqlite database, etc. - but it really depends on the purpose of your app. On May 22, 7:33 am, hoppestokk <fredrik.l...@gmail.com> wrote: > What is the easiest way to read an xml file? > How is the best way to store the information from the xml? > > I have tried to find a good tutorial, but I just can't get it to work : > ( > > I have an xml file in /res/xml called myxml.xml which looks like this: > > <?xml version="1.0"?> > <school> > <student> > <fname>Ola</fname> > <lname>Nordmann</lname> > </student> > </school> > > I just want a simple way to read and store. > > (Yes, I am a beginner :P) > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/android-developers?hl=en -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en