I'm using an XMLPullParser to read xml files, and I create it using the 
following lines : 

XmlPullParserFactory factory;
XmlPullParser xpp;

factory = XmlPullParserFactory.newInstance();
factory.setNamespaceAware(true);
factory.setFeature(XmlPullParser.FEATURE_PROCESS_DOCDECL, true);
factory.setFeature(XmlPullParser.FEATURE_PROCESS_NAMESPACES, true);
factory.setFeature(XmlPullParser.FEATURE_REPORT_NAMESPACE_ATTRIBUTES, true);
xpp = factory.newPullParser();
xpp.setInput(input); 

Then I try and launch this on my Galaxy Nexus (running JB 4.1.1), and I get 
an XMLPullParserException with the following message : "could not create 
parser : unsupported feature 
http://xmlpull.org/v1/doc/features.html#report-namespace-prefixes";. 

if I remove the FEATURE_REPORT_NAMESPACE_ATTRIBUTES, the parsing is correct 
but the parser doesn't see the namespace attributes, which I need to read. 

Is there an implementation of XMLPullParser available in the Android SDK 
which provides this feature ? Am I missing something to enable it? 

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