Click here to Skip to main content
15,915,324 members
Home / Discussions / C#
   

C#

 
GeneralC# and Microsoft Access Pin
Newbie_Toy10-Nov-04 19:26
Newbie_Toy10-Nov-04 19:26 
GeneralRe: C# and Microsoft Access Pin
Charlie Williams11-Nov-04 6:27
Charlie Williams11-Nov-04 6:27 
GeneralRe: C# and Microsoft Access Pin
Anonymous11-Nov-04 10:35
Anonymous11-Nov-04 10:35 
GeneralRe: C# and Microsoft Access Pin
Charlie Williams12-Nov-04 4:32
Charlie Williams12-Nov-04 4:32 
QuestionSortedList --- but duplicate keys? Pin
devvvy10-Nov-04 14:51
devvvy10-Nov-04 14:51 
AnswerRe: SortedList --- but duplicate keys? Pin
Daniel Turini11-Nov-04 2:00
Daniel Turini11-Nov-04 2:00 
GeneralRe: SortedList --- but duplicate keys? Pin
devvvy11-Nov-04 3:45
devvvy11-Nov-04 3:45 
GeneralXML Pin
StephenMcAllister10-Nov-04 13:17
StephenMcAllister10-Nov-04 13:17 
I would like to create an xml file in C# from data where the result looks something like either example below.

Sample1
<Customer>
<Details Id="1" Name="Jo" DateOfBirth="21/11/1945">
<Order Id="1" ProdId="123sd3" Item="C# Help Manuals Volume 1" Qty="1">
<Order Id="2" ProdId="15ere3" Item="VB - Don't go there Volume 31" Qty="9">
<Order Id="3" ProdId="16rfv3" Item="C# - Love it!" Qty="4">
</Customer>

Sample2

<Customer>
<Details Id="1" Name="Jo" DateOfBirth="21/11/1945">
<Order>
<Id="1"/>
<ProdId="123sd3"/>
<Item="C# Help Manuals Volume 1"/>
<Qty="1"/>
</Order>
<Order>
<Id="2"/>
<ProdId="15ere3"/>
<Item="VB - Don't go there Volume 31"/>
<Qty="9"/>
</Order>
<Order>
<Id="3"/>
<ProdId="16rfv3"/>
<Item="C# - Love it!"/>
<Qty="4"/>
</Order>
</Customer>

My XML syntax may not be correct but I wanted to show what I was wanting to produce. The thing is that there can be one order for one customer and a hundred for the next so the order part will change from customer to customer.

Does anyone know how to do this in C#?

Thanks for the help.
GeneralRe: XML Pin
Christian Graus10-Nov-04 13:19
protectorChristian Graus10-Nov-04 13:19 
GeneralRe: XML Pin
StephenMcAllister10-Nov-04 13:25
StephenMcAllister10-Nov-04 13:25 
GeneralRe: XML Pin
Christian Graus10-Nov-04 13:34
protectorChristian Graus10-Nov-04 13:34 
GeneralRe: XML Pin
StephenMcAllister10-Nov-04 18:30
StephenMcAllister10-Nov-04 18:30 
GeneralRe: XML Pin
Christian Graus11-Nov-04 8:46
protectorChristian Graus11-Nov-04 8:46 
GeneralRe: XML Pin
Stefan Troschuetz11-Nov-04 1:21
Stefan Troschuetz11-Nov-04 1:21 
GeneralRe: XSL Transform Pin
Daniel Turini11-Nov-04 2:03
Daniel Turini11-Nov-04 2:03 
GeneralRe: XSL Transform Pin
Christian Graus11-Nov-04 8:48
protectorChristian Graus11-Nov-04 8:48 
GeneralSchedule Controls Pin
Beringer10-Nov-04 10:49
Beringer10-Nov-04 10:49 
GeneralRe: Schedule Controls Pin
tom_dx10-Nov-04 12:51
tom_dx10-Nov-04 12:51 
GeneralRe: Schedule Controls Pin
Beringer10-Nov-04 18:07
Beringer10-Nov-04 18:07 
GeneralScrollBar thumb size Pin
benjymous10-Nov-04 10:24
benjymous10-Nov-04 10:24 
GeneralRe: ScrollBar thumb size Pin
Anonymous10-Nov-04 11:53
Anonymous10-Nov-04 11:53 
GeneralRe: ScrollBar thumb size Pin
Jay Shankar10-Nov-04 13:22
Jay Shankar10-Nov-04 13:22 
GeneralRe: ScrollBar thumb size Pin
benjymous11-Nov-04 0:43
benjymous11-Nov-04 0:43 
GeneralRe: ScrollBar thumb size Pin
Jay Shankar11-Nov-04 15:15
Jay Shankar11-Nov-04 15:15 
GeneralText_Changed in web form Pin
HectorB10-Nov-04 9:42
HectorB10-Nov-04 9:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.