Как получить значения из XML-файла в VB.NET и чем это значение помещается в таблицу в базе данных?
I have to get the values from a XML file . I have to create a class or sth in vb.net and than this value put into a table in database. The values in XML file change each time so it means...each time we have a diff XML file. Please Help . Thank you <pre lang="xml"> <pre><title>DROGHE D'ABUSO SCREEENING</title> <component> <section> <code code="32010" codeSystemName="Codifica Interna Laboratorio" displayName="Oppiacei"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Oppiacei</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTI</td> <td/> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="32010" codeSystemName="Codifica Interna Laboratorio" displayName="Oppiacei"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="32010" codeSystemName="Codifica Interna Laboratorio" displayName="Oppiacei"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTI</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="32020" codeSystemName="Codifica Interna Laboratorio" displayName="Metadone"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Metadone</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTE</td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="32020" codeSystemName="Codifica Interna Laboratorio" displayName="Metadone"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="32020" codeSystemName="Codifica Interna Laboratorio" displayName="Metadone"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTE</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="32030" codeSystemName="Codifica Interna Laboratorio" displayName="Cannabinoidi(THC)"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Cannabinoidi(THC)</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTE</td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="32030" codeSystemName="Codifica Interna Laboratorio" displayName="Cannabinoidi(THC)"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="32030" codeSystemName="Codifica Interna Laboratorio" displayName="Cannabinoidi(THC)"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTE</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="32065" codeSystemName="Codifica Interna Laboratorio" displayName="Amfetamine/Metamfetamine/Ecstasy"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Amfetamine/Metamfetamine/Ecstasy</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTE</td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="32065" codeSystemName="Codifica Interna Laboratorio" displayName="Amfetamine/Metamfetamine/Ecstasy"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="32065" codeSystemName="Codifica Interna Laboratorio" displayName="Amfetamine/Metamfetamine/Ecstasy"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTE</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="32050" codeSystemName="Codifica Interna Laboratorio" displayName="Cocaina"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Cocaina</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTE</td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="32050" codeSystemName="Codifica Interna Laboratorio" displayName="Cocaina"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="32050" codeSystemName="Codifica Interna Laboratorio" displayName="Cocaina"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTE</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="35520" codeSystemName="Codifica Interna Laboratorio" displayName="Benzodiazepine"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Benzodiazepine</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTE</td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="35520" codeSystemName="Codifica Interna Laboratorio" displayName="Benzodiazepine"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="35520" codeSystemName="Codifica Interna Laboratorio" displayName="Benzodiazepine"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTE</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="35530" codeSystemName="Codifica Interna Laboratorio" displayName="Barbiturici"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Barbiturici</td> <td>Negativo</td> <td></td> <td></td> <td></td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="35530" codeSystemName="Codifica Interna Laboratorio" displayName="Barbiturici"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="35530" codeSystemName="Codifica Interna Laboratorio" displayName="Barbiturici"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216121035" /> <value xsi:type="ST">Negativo</value> <!----> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> <component> <section> <code code="32080" codeSystemName="Codifica Interna Laboratorio" displayName="Buprenorfina"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> <th>Esame</th> <th>Esito</th> <th>Abnormal Flag</th> <th>Unita di misura</th> <th>Range di riferimento</th> <th>Metodo</th> </tr> </thead> <tbody> <tr> <td>Buprenorfina</td> <td>Negativo</td> <td></td> <td></td> <td>ASSENTE</td> <td /> </tr> </tbody> </table> <footnote></footnote> <paragraph> </paragraph> <!--Inizio Microbiologia sezione humane readable--> <!--Fine Microbiologia sezione humane readable--> </text> <entry typeCode="DRIV"> <!-- INIZIO MONO RISULTATO --> <act classCode="ACT" moodCode="EVN"> <code code="32080" codeSystemName="Codifica Interna Laboratorio" displayName="Buprenorfina"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <statusCode code="completed" /> <!--(INIZIO) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <!--(FINE) GESTIONE MICROBIOLOGIA MONO RISULTATO --> <entryRelationship typeCode="COMP"> <observation classCode="OBS" moodCode="EVN"> <code code="32080" codeSystemName="Codifica Interna Laboratorio" displayName="Buprenorfina"> <!--TRASCODIFICA RISULTATI NON DISPONIBILE--> <!--ANL_COMPLETED--> </code> <statusCode code="completed" /> <effectiveTime value="20170216115332" /> <value xsi:type="ST">Negativo</value> <!----> <referenceRange typeCode="REFV"> <observationRange classCode="OBS" moodCode="EVN.CRT"> <value xsi:type="ST">ASSENTE</value> <interpretationCode code="N" /> </observationRange> </referenceRange> </observation> </entryRelationship> <!-- VAL USED --> </act> <!-- FINE MONO RISULTATO --> </entry> </section> </component> </section> </component> <component typeCode="COMP"> <section classCode="DOCSECT" moodCode="EVN"> <!--Completo--> <code code="TOS-DROGHE" displayName="TOSSICOLOGIA D'ABUSO"> <!-- TRASCODIFICA PER SPECIALITA' NON DISPONIBILE--> </code>
Что я уже пробовал:
Я не знаю, с чего начать... я начинаю только думать ... logic...to создайте абстрактный класс, который получает эти значения как параметры(но я не знаю, как это реализовать)... кроме того, чтобы создать процедуру или что-то еще, что после того, как я получу даты из XML, я вставляю в таблицу А.