eclipse - Fetch data from XML file located in sdcard (Android) -
this first post here :-). developing application android in eclipse.
my question have put xml file in sdcard elements id,first name , lastname.
form ui have 1 textbox , button. user enter id in textbox , on click event of button should fetch data based on id. , display in textview.
any please??
thanks in advance. :-)
here sample of xml file given me,
<tblinsurees xmlns="urn:schemas-microsoft-com:sql:sqlrowset1"> <id>1</id> <lastname>family 1 (1-42-167)</lastname> <othernames>fammem1</othernames> <dob>01-01-85</dob> <photofilename xsi:nil="true" /> </tblinsurees> - <tblinsurees xmlns="urn:schemas-microsoft-com:sql:sqlrowset1"> <id>2</id> <lastname>family 2 (1-4-16)</lastname> <othernames>fammem1</othernames> <dob>01-01-85</dob> <photofilename xsi:nil="true" /> </tblinsurees> - <tblinsurees xmlns="urn:schemas-microsoft-com:sql:sqlrowset1"> <id>3</id> <lastname>family 3 (1-4-16)</lastname> <othernames>fammem3</othernames> <dob>01-01-98</dob> <photofilename xsi:nil="true" /> </tblinsurees> so possible somehow can pass id parameter , can display rest of information name , dob etc on screen?
here complete example source. file using
file file = new file(environment.getexternalstoragedirectory() + "your_path/your_xml.xml"); then further processing.
if need example different types of xml parsers can download complete example here.
Comments
Post a Comment