Click here to Skip to main content
15,891,745 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I need to get the values the come from my XML File and put them in to a table in database.I have create a class so far called CDA and a table in DB also called CDA. So now I need a way to get the value from xml file and put to db. the values I have made a ex table because I couldn't upload my xml file in here. Help me please .Thank you.
XML
<pre> <component>
                        <section>
                            <code code="31011" codeSystemName="Codifica Interna Laboratorio" displayName="Etanolo (urine)">
                                <!--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>Etanolo (urine)</td>
                                            <td>< 0,01 g/l</td>
                                            <td></td>
                                            <td></td>
                                            <td>fino a 0,35</td>
                                            <td />
                                        </tr>
                                    </tbody>
                                </table>
                                <footnote></footnote>
                                <paragraph>
                                </paragraph>
                                <!--Inizio Microbiologia sezione humane readable-->
                                <!--Fine   Microbiologia sezione humane readable-->
                            </text>


What I have tried:

I have seen some other example in stack overflow but i don't understand them.
Posted
Updated 14-Nov-18 23:26pm
Comments
Aydin Homay 15-Nov-18 5:04am    
If you have seen other examples in stack overflow and etc. and still you are not able to understand how those solutions are working, then maybe you need some fundamental topics which require a bit of time to be spent and study fist the basic topics then jump to this problem.
Member 14032312 15-Nov-18 5:20am    
i meant the nature of the problem was different , not like mine problem ..cause most of the example save the xml file in a table in db and than take there values,,, but i need the reveres of this
Aydin Homay 15-Nov-18 5:30am    
sorry I cannot help you more than this. Good luck.

1 solution

Hi,

A similar question has been answered by me at the below link:
How-to-get-the-values-from-a-XML-file
 
Share this answer
 
v2
Comments
Member 14032312 15-Nov-18 5:28am    
i need anodher thing not like the ex

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900