Saving Data Question

  • Thread starter Thread starter pmclinn
  • Start date Start date
P

pmclinn

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
 
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-us/cpref/html/frlrfsystemdatadatasetcla
sswritexmltopic.asp


hope that helps

Steve Stein
VB Team

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

--------------------
| From: "pmclinn" <[email protected]>
| 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: <[email protected]>
| 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: (e-mail address removed)
| NNTP-Posting-Date: Mon, 31 Jan 2005 17:18:08 +0000 (UTC)
| User-Agent: G2/0.2
| Complaints-To: (e-mail address removed)
| Injection-Info: z14g2000cwz.googlegroups.com; posting-host=198.178.8.81;
| posting-account=RBs6eBMAAACqbv_dCXBZmZWLthWEg4Aik9gdbPZLiF3RkHAvj5UDQg
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED02.phx.gbl!tornado.fastwebnet.it!tiscali!new
sfeed1.ip.tiscali.net!news.glorb.com!postnews.google.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
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top