Saturday, 15 February 2014

android - How to store and retrieve xml response in sqlite datadase -



android - How to store and retrieve xml response in sqlite datadase -

i want store xml response in sqlite , retrieve when info coming server response following..

<soap:envelope><soap:body><login_validateauthenticateduserresponse><login_validateauthenticateduserresult><xs:schema id="newdataset"><xs:element name="newdataset" msdata:isdataset="true" msdata:usecurrentlocale="true"><xs:complextype><xs:choice minoccurs="0" maxoccurs="unbounded"><xs:element name="table1"><xs:complextype><xs:sequence><xs:element name="returnvalue" type="xs:int" minoccurs="0"/><xs:element name="userid" type="xs:string" minoccurs="0"/></xs:sequence></xs:complextype></xs:element></xs:choice></xs:complextype></xs:element></xs:schema><diffgr:diffgram><newdataset><table1 diffgr:id="table11" msdata:roworder="0" diffgr:haschanges="inserted"><returnvalue>100</returnvalue><userid>bc43c80d-061e1</userid></table1></newdataset></diffgr:diffgram></login_validateauthenticateduserresult></login_validateauthenticateduserresponse></soap:body></soap:envelope>

you can parse xml first , store fields in sqlite. database schema should according info want stored. android dev site give various parsing options. dont know why want store file , parse later. if want store, why store in database? there other storage options too. should store file on external storage , utilize later whenever want to. this link gives how write file external storage.

android

No comments:

Post a Comment