I am porting some Java code that worked perfectly on my Android desktop. I have the following code segment:
import org.xml.sax.InputSource;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
XMLReader p = XMLReaderFactory.createXMLReader();
On the last line, I get the following exception:
Can't create default XMLReader; is system property org.xml.sax.driver set?
When I tested the code on the desktop, it worked fine. Why am I getting this exception on Android and how to fix it? thank!
source
share