473,811 Members | 2,749 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Re constructing XML file

I have an XML file below:-
<?xml version="1.0" standalone="yes "?>
<NewDataSet>
<CourseEvents >
<Code>VEN01</Code>
<VenueDescripti on>Crazy Johns - Internal</VenueDescriptio n>
<ReferenceNo>50 </ReferenceNo>
<Address1>123 3 Crazy Drive</Address1>
<Address2 />
<Address3 />
<Suburb>Sth. Melb.</Suburb>
<Postcode>303 0</Postcode>
<State>Victoria </State>
<firstday>Wedne sday, 22-March-2006</firstday>
<lastday>Tuesda y, 28-March-2006</lastday>
<CourseCode>PHS 101</CourseCode>
<Description>Ph ysics</Description>
<StartTime>20 06-03-28T09:00:00.000 0000+10:00</StartTime>
<FinishTime>200 6-03-28T18:00:00.000 0000+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 VenueDescriptio n="Crazy Johns - Internal" ReferenceNo="50 ">
- <Course CourseCode="PHS 101" Description="Ph ysics">
- <Day firstday="Wedne sday, 22-March-2006" lastday="Tuesda y, 28-March-2006"
Code="VEN01">
- <Time StartTime="2006-03-28T09:00:00.000 0000+10:00"
FinishTime="200 6-03-28T18:00:00.000 0000+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 868

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

Similar topics

0
1576
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 have this SQL: select a.field1, a.field2, b.field2, c.field2
3
1528
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, which results in displaying the constructed image path as a broken one. How to resolve this ?. Thanks. Regards,
4
1425
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 but my e-mail is ending in bulk when i'm trying to senf to hotmail/msn.
5
3475
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 numerical values? The is occuring in a loop and I'm getting a variable such as PersonID, which holds the values. The XML needs to be a string but I'd like to see what a more complex type would look like (XMLdoc type?).
11
1922
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 the longest ones) is below - at end of post. What I want to do is reformat the data, so that each individual record becomes a row (some cells will have a lot of text). For example, the column variables I want are (a) HD in one column (b) BY in...
5
2281
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 of two or three. The data required for the creation of XML are present in the form of user defined data structures.
8
2560
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 using "C".can anybody tell me how to represent it as a .bmp file?I could read data from an existing .bmp file...but couldnt construct that type of file...I tried to add header to the data directly..but the constructed image is not the one which...
10
2539
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 names_m.txt or names_f.txt but i don't know until runtime. i tried this but it didnt quite work... char fileName = {"/data/names_"};
2
1357
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 encoding should be null). Is there a way to construct the flattened MIME message such that data is streamed from the file as needed instead of being resident in memory? Do I have to subclass the MIMEBase class myself? Kris
2
5826
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 (“vcFileFrom” and “vcFileTo”) to be able to handle having spaces in the file name. I just can not seem to get the correct syntax in my access vb code to get the quotes around the filenames. I have the following code: OutRec = "Copy " & vcFileFrom & ",...
0
9727
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10398
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10133
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7669
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6889
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5554
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5692
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.