[android-developers] Re: Parse an XML

2009-02-10 Thread Ludwig
put it under res/xml/myfile.xml (in Eclipse you will have to create that directory). You can then load the file as context.getResources(R.xml.myfile) HTH Ludwig 2009/2/10 cool.manish mannishga...@gmail.com Hi, I am trying to make a simple application to parse the XML using SAXParser but it is

[android-developers] Re: Parse an XML

2009-02-10 Thread Ludwig
sorry that should have been context.getResources().getXml(R.xml.myxml) Ludwig 2009/2/10 Ludwig ludwigbrinckm...@gmail.com put it under res/xml/myfile.xml (in Eclipse you will have to create that directory). You can then load the file as context.getResources(R.xml.myfile) HTH Ludwig

[android-developers] Re: Parse an XML

2009-02-10 Thread cool.manish
What is the context? I am getting error at that point. Actually I am trying to parse the xml file SAXParser sp = spf.newSAXParser(); sp.parse(context.getResources().getXml(R.xml.employees), this) On Feb 11, 3:32 am, Ludwig ludwigbrinckm...@gmail.com wrote: sorry that should have been

[android-developers] Re: Parse an XML

2009-02-10 Thread for android
Context is the super -class of the Activity..so basically u need to use the activity... On Wed, Feb 11, 2009 at 10:56 AM, cool.manish mannishga...@gmail.comwrote: What is the context? I am getting error at that point. Actually I am trying to parse the xml file SAXParser sp =

[android-developers] Re: Parse an XML

2009-02-10 Thread Dianne Hackborn
This code doesn't make any sense. Resources.getXml() returns an XmlPullParser; you don't need to wrap that in another XML parser. Just use the returned XmlPullParser to read the XML directly. On Tue, Feb 10, 2009 at 9:26 PM, cool.manish mannishga...@gmail.com wrote: What is the context? I