我有一堆這些XML文件,我想要讀取和存儲在SQL表中的數據。讀取/解析XML文件的最佳方式是什麼?我正在使用ASP.NET 4.0和SQL Server 2008.我非常擅長C#/ VB和asp.net,但對XML沒有多少經驗。基本上這些是多選題,並有答案。任何幫助將不勝感激。謝謝。什麼是讀取/解析XML文件的最佳方法
<assessmentItem xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p0 imsqti_v2p0.xsd" identifier="choice" adaptive="false" timeDependent="false" title="001157" xmlns="http://www.imsglobal.org/xsd/imsqti_v2p0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<responseDeclaration identifier="RESPONSE" cardinality="single" baseType="identifier">
<correctResponse>
<value>A</value>
</correctResponse>
</responseDeclaration>
<outcomeDeclaration identifier="SCORE" cardinality="single" baseType="integer">
<defaultValue>
<value>0</value>
</defaultValue>
</outcomeDeclaration>
<stylesheet href="stylesheet/scip.css" type="text/css" />
<itemBody>
<span class="class1">
<b>Nick had eight marbles. He found four more.<br />
<br />
</b>
</span>
<div class="class2">
<span class="class1">
<b>
<img src="images/41047.jpg" alt="" />
</b>
</span>
</div>
<span class="class1">
<b>How many marbles does Nick have now?</b>
</span>
<choiceInteraction responseIdentifier="RESPONSE" shuffle="false" maxChoices="1">
<simpleChoice identifier="A">
<span class="class1">12</span>
<rubricBlock>
<span class="class1" >
<b>Correct</b>
</span>
</rubricBlock>
</simpleChoice>
<simpleChoice identifier="B">
<span class="class1">8</span>
<rubricBlock>
<span class="class1" >Chose a number from the stem</span>
</rubricBlock>
</simpleChoice>
<simpleChoice identifier="C">
<span class="class1">4</span>
<rubricBlock>
<span class="class1" >Subtracted</span>
</rubricBlock>
</simpleChoice>
</choiceInteraction>
</itemBody>
<responseProcessing template="http://www.imsglobal.org/question/qti_v2p0/rptemplates/match_correct" />
</assessmentItem>
你有效註定自己說這是「選擇題」。預計問題會有明確的答案,因爲這不是論壇。如果你能夠證明自己已經嘗試過自己做一些你看起來沒有做過的事情,那麼這也很有幫助。 – Ben