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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to