InputStream obj_is = null;
Document obj_doc = null;
DocumentBuilderFactory doc_build_fact = null;
DocumentBuilder doc_builder = null;
obj_is = new FileInputStream(/sdcard/xmlfile.xml);
doc_build_fact = DocumentBuilderFactory.newInstance();
doc_builder = doc_build_fact.newDocumentBuilder();
ROHIT wrote:
I want to access the XML file from sdcard and i want to parse thar
file. How ta access this file and pass it to Parse method?
Use Environment.getExternalStorageDirectory() and build a File object to
point to the XML file in question. After that, if you are using DOM or
SAX, it is
I want to access the XML file from sdcard and i want to parse thar
file. How ta access this file and pass it to Parse method?
--
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to
I have the file in sdcard: sample.xml
I want to read it, so I dont know some code to connect to sdcard in
android.
Anyone help me, please?
Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
Groups Android Developers
4 matches
Mail list logo