I am porting some Java code that worked fine on my desktop to Android. I have the following code segment:
import org.xml.sax.InputSource;
import org.xml.sax.
I just ran into the same issue while porting some code to Android. I found that creating my own factory and parser seems to work.
I'd try replacing this:
XMLReader p = XMLReaderFactory.createXMLReader();
With this:
SAXParserFactory saxParserFactory = SAXParserFactory.newInstance();
SAXParser newSAXParser = saxParserFactory.newSAXParser();
XMLReader p = newSAXParser.getXMLReader();
Hope this helps :)