473,397 Members | 2,116 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,397 software developers and data experts.

Saving Data Question

I have a formated a structure as follows:

<Serializable()>public structure stcOutPut
private data as string
private visi as string
end structure

Instances of this strucuture are stored in an array list.

Dim z as new arraylist
for i as....
z.add(stcOutPut).....
loop

I want to export these items to an xml file. What is the best way to
code this solution.

-Peter

Nov 21 '05 #1
1 1189
Peter,

Manually loop through your array list and write out the XML file.

or

Load the data into a dataset and use the DataSet.WriteXML method.
http://msdn.microsoft.com/library/en...datadatasetcla
sswritexmltopic.asp
hope that helps

Steve Stein
VB Team

This posting is provided "AS IS" with no warranties and confers no rights.

--------------------
| From: "pmclinn" <pe***@mclinn.com>
| Newsgroups: microsoft.public.dotnet.languages.vb
| Subject: Saving Data Question
| Date: 31 Jan 2005 09:18:04 -0800
| Organization: http://groups.google.com
| Lines: 19
| Message-ID: <11**********************@z14g2000cwz.googlegroups .com>
| NNTP-Posting-Host: 198.178.8.81
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1107191888 2553 127.0.0.1 (31 Jan 2005
17:18:08 GMT)
| X-Complaints-To: gr**********@google.com
| NNTP-Posting-Date: Mon, 31 Jan 2005 17:18:08 +0000 (UTC)
| User-Agent: G2/0.2
| Complaints-To: gr**********@google.com
| Injection-Info: z14g2000cwz.googlegroups.com; posting-host=198.178.8.81;
| posting-account=RBs6eBMAAACqbv_dCXBZmZWLthWEg4Aik9gdbPZLiF 3RkHAvj5UDQg
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado .fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!postnews.goog le.com!z14g2000cwz.googleg
roups.com!not-for-mail
| Xref: cpmsftngxa10.phx.gbl microsoft.public.dotnet.languages.vb:257241
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| I have a formated a structure as follows:
|
| <Serializable()>public structure stcOutPut
| private data as string
| private visi as string
| end structure
|
| Instances of this strucuture are stored in an array list.
|
| Dim z as new arraylist
| for i as....
| z.add(stcOutPut).....
| loop
|
| I want to export these items to an xml file. What is the best way to
| code this solution.
|
| -Peter
|
|

Nov 21 '05 #2

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

Similar topics

4
by: Jerivix Entadi | last post by:
I'm attempting to create an application to work with a fluid database of people. I'm doing this in a command line, text-based manner. I need to know two things: 1) How do I save data, perhaps a...
1
by: R. Yang | last post by:
Hi, I've a question regarding saving the data. I noticed some of my recently-entered data mysteriously disappeared. There was nowhere to re-locate them. Plus, those data were entered within the...
15
by: Dan DeConinck | last post by:
Hello, I want to save the position of all the controls on my form. I would like to write them out to a preference file. I have done this in DOS BASIC like this: TO WRITE the preference...
1
by: Tom | last post by:
I have a large application; lots of forms, multiple dynamic DLLs, etc. I also have, in the appliation, a general 'Preferences' class object (which is in itself a separate DLL, and I just include a...
4
by: Pedro Leite | last post by:
Good Afternoon. the code below is properly retreiving binary data from a database and saving it. but instead of saving at client machine is saving at the server machine. what is wrong with my...
6
by: Mark Denardo | last post by:
My question is similar to one someone posted a few months back, but I don't see any replies. Basically I want to be able to have users upload photos and save them in a database (as byte data)...
1
by: google | last post by:
I have a form with several subforms. Users enter the data, then on the parent there is a command button that runs code to generate a .pdf document from a report based on the data they are working...
2
by: =?Utf-8?B?bWFydGluMQ==?= | last post by:
Hi, All, My app picks ccurrent time on the PC to retrieve data from sql DB, the Sql data is always data with non-daylight saving. The app runs on PC with both daylight saving and non-daylight...
9
by: Wingot | last post by:
Hey, I am using Visual Studio 2008 Beta 2 for some application development in C#, but I presume that the following question applies equally well to any environment.
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.