Click here to Skip to main content
15,887,350 members
Home / Discussions / C#
   

C#

 
Questionprogram Pin
sujeet3082@yahoo.com7-Nov-09 8:19
sujeet3082@yahoo.com7-Nov-09 8:19 
AnswerRe: program Pin
Richard MacCutchan7-Nov-09 8:35
mveRichard MacCutchan7-Nov-09 8:35 
AnswerRe: program Pin
Christian Graus7-Nov-09 9:05
protectorChristian Graus7-Nov-09 9:05 
AnswerRe: program Pin
Luc Pattyn7-Nov-09 9:37
sitebuilderLuc Pattyn7-Nov-09 9:37 
Questioncartoon yourself?????????????????????????? Pin
rizwana rashid7-Nov-09 8:09
rizwana rashid7-Nov-09 8:09 
AnswerRe: cartoon yourself?????????????????????????? Pin
Christian Graus7-Nov-09 9:04
protectorChristian Graus7-Nov-09 9:04 
QuestionProblem reading image tag info using Microsoft PropertyItems. Pin
ftCalhouner7-Nov-09 5:47
ftCalhouner7-Nov-09 5:47 
Questionhow to write xml? [modified] Pin
Member 23212937-Nov-09 5:38
Member 23212937-Nov-09 5:38 
Hi,
Is anyone can tell me how to write a xml file that can return me a result look like this:
<?xml version="1.0"?>
<Items>
<Appointment Start="07/12/2008 11:05:00" End="07/12/2008 14:30:00" .../>
<Appointment Start="07/14/2008 08:15:00" End="07/16/2008 16:40:00" .../>
</Items>
Above is my expected look of my xml file.
These data <Appointment start=".... /> are set EXACTLY THE SAME into a dataset and the table name is "xmldata" And before it is generated I try to loop this dataset and hope to generate a xml look like above. but i alway fail to get a correct format.
its comes like this:
<?xml version="1.0" standalone="yes"?>
<Items>
<xmldata>
<Data>Appointment Start='07/12/2008 11:05:00' End='07/12/2008 14:30:00' Description='Rent this car ' Label='2' Location='city' ResourceId='1' Status='3' Subject='Mr.Brown' </Data>
</xmldata>
<xmldata>
<Data>Appointment Start='07/14/2008 08:15:00' End='07/16/2008 16:40:00' Description='Scheduled repair of this car' Label='4' Location='Service Center' ResourceId='1' Status='2' Subject='Repair' </Data>
</xmldata>
</Items>
XML above by using: ldt_ds.Tables["xmldata"].WriteXml(sourcePath2, false);
Hope someone can help on this.
Thank you.
by CS Tan

modified on Saturday, November 7, 2009 12:06 PM

AnswerRe: how to write xml? Pin
Not Active7-Nov-09 6:45
mentorNot Active7-Nov-09 6:45 
AnswerRe: how to write xml? Pin
PIEBALDconsult7-Nov-09 10:18
mvePIEBALDconsult7-Nov-09 10:18 
QuestionRegistration required Pin
_Madmatt7-Nov-09 5:13
_Madmatt7-Nov-09 5:13 
AnswerRe: Registration required Pin
Not Active7-Nov-09 5:36
mentorNot Active7-Nov-09 5:36 
GeneralRe: Registration required Pin
_Madmatt7-Nov-09 5:46
_Madmatt7-Nov-09 5:46 
GeneralRe: Registration required Pin
Not Active7-Nov-09 6:09
mentorNot Active7-Nov-09 6:09 
GeneralRe: Registration required [modified] Pin
_Madmatt7-Nov-09 6:20
_Madmatt7-Nov-09 6:20 
GeneralRe: Registration required Pin
Not Active7-Nov-09 6:39
mentorNot Active7-Nov-09 6:39 
GeneralRe: Registration required Pin
_Madmatt7-Nov-09 6:43
_Madmatt7-Nov-09 6:43 
GeneralRe: Registration required Pin
Not Active7-Nov-09 6:46
mentorNot Active7-Nov-09 6:46 
GeneralRe: Registration required Pin
Judah Gabriel Himango7-Nov-09 7:36
sponsorJudah Gabriel Himango7-Nov-09 7:36 
GeneralRe: Registration required Pin
Not Active7-Nov-09 8:29
mentorNot Active7-Nov-09 8:29 
GeneralRe: Registration required Pin
_Madmatt7-Nov-09 8:44
_Madmatt7-Nov-09 8:44 
GeneralRe: Registration required Pin
#realJSOP8-Nov-09 1:48
mve#realJSOP8-Nov-09 1:48 
GeneralRe: Registration required Pin
Christian Graus7-Nov-09 9:11
protectorChristian Graus7-Nov-09 9:11 
GeneralRe: Registration required [modified] Pin
_Madmatt7-Nov-09 21:35
_Madmatt7-Nov-09 21:35 
GeneralRe: Registration required Pin
#realJSOP8-Nov-09 1:54
mve#realJSOP8-Nov-09 1:54 

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.