473,396 Members | 1,996 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Re constructing XML file

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
0 856

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Krasimir_Slaveykov | last post by:
Hello , I have a problem with constructing correct SQL. I have tables: TABLE1 wich have FIELD1 and FIELD2 TABLE2 wich have FIELD1 and FIELD2 TABLE3 wich have FIELD1, FIELD2 and FIELD3 I...
3
by: karthick | last post by:
Hi, I am constructing a Message (Body) for sending our Emails. It is around 3000 characters long. But for whatever reason, the last line seems to be broken with a "!" exclamatory mark in it,...
4
by: Narendra | last post by:
Hi All, This is narendra from india doing my engineering. i need to develop an E-mail client in python,which connects to my MTA on port 25 and sends email from there. I was able to do that...
5
by: Brett Romero | last post by:
What is the best way to construct this type of XML <ROOT><Person PersonId=\"1000\" /><Person PersonId=\"1001\" /><Person PersonId=\"1002\" /></ROOT> when I'm getting back only the three...
11
by: bgreen | last post by:
I am hoping for some assistance with formatting a large text file which consists of a series of individual records. Each record includes specific labels/field names (a sample of 1 record (one of...
5
by: Sek | last post by:
Hi Folks, I would like to create a XML file that adhere to the Schema definition files. My schema definition files import/include further XSD files and internal references can be to a depth...
8
by: mvkml | last post by:
hi! I am working with bmp files for my project.I am having the pixel data (binary.. i.e;10001001001..)and i need to represent it as a .bmp file.I need to construct an image(.bmp) from this data...
10
by: drsmooth | last post by:
i need to open a file whose name i only know part of until runtime. it is based on a char value. the char represents gender and is either 'm' or ''f' i need to load from a text file called...
2
by: Kris Kennaway | last post by:
I would like to MIME encode a message from a large file without first loading the file into memory. Assume the file has been pre-encoded on disk (actually I am using encode_7or8bit, so the...
2
by: ncsthbell | last post by:
I am trying to construct a 'Copy' statement in Access 2000 vb that I will actually write out to create a .bat file. My problem is that I need to put quotes around the vcFileFrom and vcFileTo...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.