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 wrote:
>
> What is the context?
> I am getting error at t
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 wrote:
>
> 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.pars
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 wrote:
> sorry that should have been
> context.getResources().getXml(R.
sorry that should have been
context.getResources().getXml(R.xml.myxml)
Ludwig
2009/2/10 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
>
>
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
>
> Hi, I am trying to make a simple application to parse the XML using
> SAXParser but it is not finding the xml
5 matches
Mail list logo