Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 17th, 2006, 02:55 AM
redlightpacket@wmconnect.com
Guest
 
Posts: n/a
Default Need a Code Example of XML in C#

I need some C# code to read the stuff in a file. I want to display the
question in a text box. I want the answers to display in a label. Like
"LabelA, LableB, LabelC, LabelD". I also want it so I can skip to
specific question numbers in the xml file like "<question = 000002>" so
I can bring up different kinds of questions.


<quelist>
<question = 000001>
<quetext>
Who is the richest person in the world?
</quetext>
<que = 000001 answer = A>
A. Bill Gates
</que>
<que = 000001 answer = B>
B. Larry Ellsion
</que>
<que = 000001 answer = C>
C. Bill Ford
</que>
<que = 000001 answer = D>
D. Sam Walton
</que>
</question>
<question = 000002>
<quetext>
Who is the richest person in the world?
</quetext>
<que = 000002 answer = A>
A. Bill Gates
</que>
<que = 000002 answer = B>
B. Larry Ellsion
</que>
<que = 000002 answer = C>
C. Bill Ford
</que>
<que = 000002 answer = D>
D. Sam Walton
</que>
</question>
</quelist>

The xml stuff below is another thing I want code to. I need some C#
code to write data to a xml file in the format below. Thanks for your
help...

<anslist>
<ans = 000001>
A
</ans>
</anslist>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles