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