By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,117 Members | 1,714 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,117 IT Pros & Developers. It's quick & easy.

Re constructing XML file

P: n/a
I have an XML file below:-
<?xml version="1.0" standalone="yes"?>
<NewDataSet>
<CourseEvents>
<Code>VEN01</Code>
<VenueDescription>Crazy Johns - Internal</VenueDescription>
<ReferenceNo>50</ReferenceNo>
<Address1>1233 Crazy Drive</Address1>
<Address2 />
<Address3 />
<Suburb>Sth. Melb.</Suburb>
<Postcode>3030</Postcode>
<State>Victoria</State>
<firstday>Wednesday, 22-March-2006</firstday>
<lastday>Tuesday, 28-March-2006</lastday>
<CourseCode>PHS101</CourseCode>
<Description>Physics</Description>
<StartTime>2006-03-28T09:00:00.0000000+10:00</StartTime>
<FinishTime>2006-03-28T18:00:00.0000000+10:00</FinishTime>
<InternalEvent>true</InternalEvent>
</CourseEvents>
</NewDataSet>

How can i re-write it to something like
<?xml version="1.0" standalone="yes" ?>
- <NewDataSet>
- <CourseEvents VenueDescription="Crazy Johns - Internal" ReferenceNo="50">
- <Course CourseCode="PHS101" Description="Physics">
- <Day firstday="Wednesday, 22-March-2006" lastday="Tuesday, 28-March-2006"
Code="VEN01">
- <Time StartTime="2006-03-28T09:00:00.0000000+10:00"
FinishTime="2006-03-28T18:00:00.0000000+10:00">
<Address1 Suburb="" Postcode="" State="" />
<Address2 Suburb="" Postcode="" State="" />
<Address3 Suburb="" Postcode="" State="" />
</Time>
</Day>
</Course>
</CourseEvents>
</NewDataSet>

Any ideas?
Thanks
Mar 14 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.