Dies ist meine XML-Datei:Lesen von XML in DataSet
<?xml version="1.0" standalone="no" ?>
<!-- This file represents The Details of the user and the responces: -->
<Survey>
<Clientdetails>
<ClientName xmlns="yash" />
<ClientCompanyName xmlns="lnt" />
<ClientTelNo. xmlns="546" />
<ClientMobileNo xmlns="56" />
<ClientEMail xmlns="56" />
</Clientdetails>
<ClientResponces>
<Question1>
<responce>1</responce>
</Question1>
<Question2>
<responce>2</responce>
</Question2>
<Question3>
<responce>3</responce>
</Question3>
<Question4>
<responce>3</responce>
</Question4>
<Question5>
<Question5.1>
<responce>3</responce>
</Question5.1>
<Question5.2>
<responce>3</responce>
</Question5.2>
<Question5.3>
<responce>2</responce>
</Question5.3>
<Question5.4>
<responce>3</responce>
</Question5.4>
<Question5.5>
<responce>3</responce>
</Question5.5>
<Question5.6>
<responce>3</responce>
</Question5.6>
<Question5.7>
<responce>3</responce>
</Question5.7>
<Question5.8>
<responce>2</responce>
</Question5.8>
<Question5.9>
<responce>1</responce>
</Question5.9>
<Question5.10>
<responce>2</responce>
</Question5.10>
<Question5.11>
<responce>0</responce>
</Question5.11>
<Question5.12>
<responce>0</responce>
</Question5.12>
<Question5.13>
<responce>0</responce>
</Question5.13>
<Question5.14>
<responce>0</responce>
</Question5.14>
<Question5.15>
<responce>0</responce>
</Question5.15>
<Question5.16>
<responce>0</responce>
</Question5.16>
<Question5.17>
<responce>0</responce>
</Question5.17>
</Question5>
</ClientResponces>
</Survey>
ich diese Daten in ein DataSet lesen möchten. Ich möchte nur die Antworten des Kunden, und für die 5. Frage möchte ich den Durchschnitt seiner 17 Unterfragen.
Zum Beispiel sollte der Datensatz nur diese enthält:
1
2
3
3
4
Wie dies in C# tun?
eh ?? Was ist deine Frage? Sie können einfach die XML-Datei öffnen und die Daten einfügen. – Shoban
Ihr XML-Beispiel fehlt? – eddiegroves
Bearbeitete die Frage, um XML richtig anzuzeigen. – Shoban