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 <[email protected]> wrote:
> sorry that should have been
> context.getResources().getXml(R.xml.myxml)
>
> Ludwig
>
> 2009/2/10 Ludwig <[email protected]>
>
>
>
> > 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 <[email protected]>
>
> >> Hi, I am trying to make a simple application to parse the XML using
> >> SAXParser but it is not finding the xml file which I have added in the
> >> project. How and where should I add the XML file?- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to