How to insert Absolute Path into XMLRessourceParser ?

alexmason

New Member
I build a XMLResourceParser. Now my problem is, I can only use XML Files in my res\xml\ Folder. How can I use Files located on the SD-Card? I've got a String path which contains an absolute Path of a XML File.For example /mnt/sdcard/TestXML.xmlI want to let the user choose the File to parse.\[code\]try { XmlResourceParser xpp = getResources().getXml(R.xml.xml); xpp.next(); int eventType = xpp.getEventType(); String elemtext = null; while (eventType != XmlPullParser.END_DOCUMENT) { if (eventType == XmlPullParser.START_TAG) { String elemName = xpp.getName();\[/code\]Thanks
 
Back
Top