Jump to content

Accessing Of Xml File In Wpf Using C#


AdiNaidu

Recommended Posts

good morning to all,

iam new to this .net technology,and i want to create a small quiz application whose questions and answers are stored in xml file and i want to display each question in each page, i have tried and failed please help me friends


and this is my sample xml file

<?xml version="1.0" encoding="utf-16"?>
<questions>
<question>
<type>singlevalue</type>
<id>1</id>
<name> What is your favorite color?</name>
<options>
<option>Red</option>
<option>White</option>
<option>Yellow</option>
</options>


</question>
<question>
<type>multivalue</type>
<id>2</id>
<name> What Languages Do You Know?</name>
<options>
<option>English</option>
<option>Spanish</option>
<option>French</option>
</options>
</question>
<question>
<type>Mulitvalue</type>
<id>3</id>
<name >which states belongs to india?</name>
<options>
<option>andhra pradesh</option>
<option>karnataka</option>
<option>los angeles</option>
</options>

</question>
<question>
<type>input</type>
<id>4</id>
<name > write about yourself?</name>
<options>
<option></option>
<option></option>
<option></option>
</options>
</question>
<question>
<type>input</type>
<id>5</id>
<name >what is .net?</name>
<options>
<option></option>
<option></option>
<option></option>
</options>

</question>
<question>
<type>check</type>
<id>6</id>
<name>6.is this information useful?</name>
<options>
<option>yes</option>
<option>no</option>
</options>

</question>
</questions>

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...