サーバから来たxml形式のデータがあります。今私はそれをデータベースに格納したいと思うし、ボタンをクリックして読み込む必要があります。私はどのようにこれを行う必要がありますか?xmlデータをsqliteデータベースに格納する方法
enter code here
<qst_code> 7 </qst_code>
<qst_prg_code> 1 </qst_prg_code>
<qst_mod_code> 2 </qst_mod_code>
<qst_Question>What is not true about left dominant cardiology circulation? </qst_Question>
<qst_opt1>It is seen in 20% of the population</qst_opt1>
<qst_opt2>Left circumflex artery supplies the Posterior descending artery</qst_opt2>
<qst_opt3>Left circumflex artery terminates as obtuse marginal branch</qst_opt3>
<qst_opt4>Left circumflex artery may originate from right coronary sinus</qst_opt4>
<qst_opt01>1</qst_opt01>
<qst_opt02>1</qst_opt02>
<qst_opt03>1</qst_opt03>
<qst_opt04>1</qst_opt04>
<qst_CorctOpt>1</qst_CorctOpt>
<qst_Marks>10</qst_Marks>
<qst_company_code>1</qst_company_code>
<user_code>1</user_code>
XMLはデータをツリー内に保持します。 SQLiteはデータをテーブルに保持します。ツリーとテーブルの間で翻訳する方法はたくさんあります。私はあなたがそのデータがどのように見えているのか、それとも何をやっているのか分からないので、あなたが最良の方法を選ぶのを手伝うことができません。より多くの情報を提供する必要があります。 –
感謝のmike私はxmlデータ構造を提供しています – naleshmadur