thanks

On May 16, 2:28 am, Dianne Hackborn <[email protected]> wrote:
> You haven't stepped the parse at all.  A google search will return this as
> the first result:
>
> http://www.xmlpull.org/v1/doc/api/org/xmlpull/v1/XmlPullParser.html
>
>
>
> On Fri, May 15, 2009 at 5:06 PM, zeeshan <[email protected]> wrote:
>
> > Hi Experts,
>
> > i spent 3 hours trying to figure out why XmlPullParser. XMLParser
> > eturns null .
>
> > please have a look on my code below:
>
> > XmlPullParser XMLParser  = this.getApplicationContext().getResources
> > ().getXml(R.xml.book);
>
> > String name=XMLParser.getName();
>
> > i also tried the example
> >http://developer.android.com/reference/org/xmlpull/v1/XmlPullParser.html
> > but same result
>
> > XmlPullParserFactory factory = XmlPullParserFactory.newInstance();
> >         factory.setNamespaceAware(true);
> >         XmlPullParser xpp = factory.newPullParser();
>
> >         xpp.setInput( new StringReader ( "<foo>Hello World!</
> > foo>" ) );
> >         String name = xpp.getName();
>
> > please let me know where i am wrong
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> Note: please don't send private questions to me, as I don't have time to
> provide private support, and so won't reply to such e-mails.  All such
> questions should be posted on public forums, where I and others can see and
> answer them.
--~--~---------~--~----~------------~-------~--~----~
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