473,396 Members | 1,846 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.

Setting Up XML DB

I am trying to build a VB.NET Windows application in which I want to create
an XML file from data collected from the user and stored in arrays. I am
looking for any pointers to information on how to accomplish this.

TIA

Wayne
Jul 21 '05 #1
8 1242
One easy way is to load the data into a datatable instead of arrays, or use
the arrays to load a datatable. Put the datatable in a dataset and use the
..WriteXML method to write it and DataSet.ReadXML to read it.

You can also make your Arrays memebers of a class and mark the class as
Serializable and use the serialization libraries to accomplish this.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I am trying to build a VB.NET Windows application in which I want to create an XML file from data collected from the user and stored in arrays. I am
looking for any pointers to information on how to accomplish this.

TIA

Wayne

Jul 21 '05 #2
William;

Thanks for the reply. Do you have a pointer to information or examples of
how to accomplish this? I am feeling like it is a catch 22 since the only
way I see to get a datatable is to have a dataset to contain it but I have
not yet created the dataset. I am unsure of how to accomplish this.

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
One easy way is to load the data into a datatable instead of arrays, or use the arrays to load a datatable. Put the datatable in a dataset and use the .WriteXML method to write it and DataSet.ReadXML to read it.

You can also make your Arrays memebers of a class and mark the class as
Serializable and use the serialization libraries to accomplish this.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I am trying to build a VB.NET Windows application in which I want to

create
an XML file from data collected from the user and stored in arrays. I am
looking for any pointers to information on how to accomplish this.

TIA

Wayne


Jul 21 '05 #3
Hi Wayne:

What part do you need? I'll try to find something in particular.

if you have a datatab;le, the rest is easy:

DataSet ds = new DataSet();
ds.Tables.Add(DataTableYouCretaed);
ds.WriteXML(@"Path:\Fielname.xml");

then, set up a dataadapter and just call update
dataAdapter1.Update(ds.Tables[0]) //you may need multiple adapters depending
on how many tables you have.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
William;

Thanks for the reply. Do you have a pointer to information or examples of
how to accomplish this? I am feeling like it is a catch 22 since the only
way I see to get a datatable is to have a dataset to contain it but I have
not yet created the dataset. I am unsure of how to accomplish this.

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
One easy way is to load the data into a datatable instead of arrays, or

use
the arrays to load a datatable. Put the datatable in a dataset and use

the
.WriteXML method to write it and DataSet.ReadXML to read it.

You can also make your Arrays memebers of a class and mark the class as
Serializable and use the serialization libraries to accomplish this.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
I am trying to build a VB.NET Windows application in which I want to

create
an XML file from data collected from the user and stored in arrays. I am looking for any pointers to information on how to accomplish this.

TIA

Wayne



Jul 21 '05 #4
Thanks for the help here. I know I am confused on procedures and terms for
all this. Basically, I want to end up with an XML file similar to the one
shown below. I currently have 2 arrays - one with just the common show data
(showname and showdate) and another array with sets of values for each entry
(name, team, event, time).

From what I've read I believe I want to create a new datatable for each of
those 2 current arrays and define columns as appropriate? But since the
contest data table will have just one row and the entries table will have
many rows I don't see how to build an object from which I can export the XML
I need. I've though of a cross join (right term?) where the output will
consist of rows where the contest data is repeated in each row. That seems
inefficient?

Any pointers are much appreciated

================================================

<contest>
<contestinfo>
<contestname>South Side Contest</contestname>
<contestdate>2004-05-07</contestdate>
</contestinfo>
<entry>
<name>Johnny Jones</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Mary Smith</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Ed Brown</name>
<team>Hot Shots</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
<entry>
<name>Jack Green</name>
<team>Marauders</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
</contest>
=============================================

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:eh*************@TK2MSFTNGP11.phx.gbl...
Hi Wayne:

What part do you need? I'll try to find something in particular.

if you have a datatab;le, the rest is easy:

DataSet ds = new DataSet();
ds.Tables.Add(DataTableYouCretaed);
ds.WriteXML(@"Path:\Fielname.xml");

then, set up a dataadapter and just call update
dataAdapter1.Update(ds.Tables[0]) //you may need multiple adapters depending on how many tables you have.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
William;

Thanks for the reply. Do you have a pointer to information or examples of
how to accomplish this? I am feeling like it is a catch 22 since the only way I see to get a datatable is to have a dataset to contain it but I have not yet created the dataset. I am unsure of how to accomplish this.

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
One easy way is to load the data into a datatable instead of arrays, or
use
the arrays to load a datatable. Put the datatable in a dataset and
use the
.WriteXML method to write it and DataSet.ReadXML to read it.

You can also make your Arrays memebers of a class and mark the class
as Serializable and use the serialization libraries to accomplish this.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl...
> I am trying to build a VB.NET Windows application in which I want to
create
> an XML file from data collected from the user and stored in arrays.

I am > looking for any pointers to information on how to accomplish this.
>
> TIA
>
> Wayne
>
>



Jul 21 '05 #5
I just loaded your xml into a dataset and got two tables as expected. In
your dataset or object, you need a link between the two, there doesn't
appear to be one. If one value is common in both tables, then you can use a
DataRelation and the rest is really easy, I can walk you through it in a few
minutes. However, do I understand the structure correctly in that there is
some sort of relationship between the two, some link between the two
tables.?
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:#w**************@tk2msftngp13.phx.gbl...
Thanks for the help here. I know I am confused on procedures and terms for
all this. Basically, I want to end up with an XML file similar to the one
shown below. I currently have 2 arrays - one with just the common show data (showname and showdate) and another array with sets of values for each entry (name, team, event, time).

From what I've read I believe I want to create a new datatable for each of
those 2 current arrays and define columns as appropriate? But since the
contest data table will have just one row and the entries table will have
many rows I don't see how to build an object from which I can export the XML I need. I've though of a cross join (right term?) where the output will
consist of rows where the contest data is repeated in each row. That seems
inefficient?

Any pointers are much appreciated

================================================

<contest>
<contestinfo>
<contestname>South Side Contest</contestname>
<contestdate>2004-05-07</contestdate>
</contestinfo>
<entry>
<name>Johnny Jones</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Mary Smith</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Ed Brown</name>
<team>Hot Shots</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
<entry>
<name>Jack Green</name>
<team>Marauders</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
</contest>
=============================================

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:eh*************@TK2MSFTNGP11.phx.gbl...
Hi Wayne:

What part do you need? I'll try to find something in particular.

if you have a datatab;le, the rest is easy:

DataSet ds = new DataSet();
ds.Tables.Add(DataTableYouCretaed);
ds.WriteXML(@"Path:\Fielname.xml");

then, set up a dataadapter and just call update
dataAdapter1.Update(ds.Tables[0]) //you may need multiple adapters depending
on how many tables you have.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
William;

Thanks for the reply. Do you have a pointer to information or examples of how to accomplish this? I am feeling like it is a catch 22 since the only way I see to get a datatable is to have a dataset to contain it but I have not yet created the dataset. I am unsure of how to accomplish this.

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
> One easy way is to load the data into a datatable instead of arrays, or use
> the arrays to load a datatable. Put the datatable in a dataset and use the
> .WriteXML method to write it and DataSet.ReadXML to read it.
>
> You can also make your Arrays memebers of a class and mark the class as > Serializable and use the serialization libraries to accomplish this.
>
> HTH,
>
> Bill
> "Wayne Wengert" <wa***************@wengert.com> wrote in message
> news:OV**************@TK2MSFTNGP10.phx.gbl...
> > I am trying to build a VB.NET Windows application in which I want to > create
> > an XML file from data collected from the user and stored in

arrays. I
am
> > looking for any pointers to information on how to accomplish this.
> >
> > TIA
> >
> > Wayne
> >
> >
>
>



Jul 21 '05 #6
Thanks for the continued education.

When you say you loaded my XML into a dataset, exactly how did you do that?

As for the tables, there is no link - I can easily give each show data entry
an identity value ("ShowID") and then use that as a link in the entries
table.

Wayne
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl...
I just loaded your xml into a dataset and got two tables as expected. In
your dataset or object, you need a link between the two, there doesn't
appear to be one. If one value is common in both tables, then you can use a DataRelation and the rest is really easy, I can walk you through it in a few minutes. However, do I understand the structure correctly in that there is
some sort of relationship between the two, some link between the two
tables.?
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:#w**************@tk2msftngp13.phx.gbl...
Thanks for the help here. I know I am confused on procedures and terms for
all this. Basically, I want to end up with an XML file similar to the one shown below. I currently have 2 arrays - one with just the common show data
(showname and showdate) and another array with sets of values for each

entry
(name, team, event, time).

From what I've read I believe I want to create a new datatable for each of those 2 current arrays and define columns as appropriate? But since the
contest data table will have just one row and the entries table will have many rows I don't see how to build an object from which I can export the

XML
I need. I've though of a cross join (right term?) where the output will
consist of rows where the contest data is repeated in each row. That seems inefficient?

Any pointers are much appreciated

================================================

<contest>
<contestinfo>
<contestname>South Side Contest</contestname>
<contestdate>2004-05-07</contestdate>
</contestinfo>
<entry>
<name>Johnny Jones</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Mary Smith</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Ed Brown</name>
<team>Hot Shots</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
<entry>
<name>Jack Green</name>
<team>Marauders</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
</contest>
=============================================

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:eh*************@TK2MSFTNGP11.phx.gbl...
Hi Wayne:

What part do you need? I'll try to find something in particular.

if you have a datatab;le, the rest is easy:

DataSet ds = new DataSet();
ds.Tables.Add(DataTableYouCretaed);
ds.WriteXML(@"Path:\Fielname.xml");

then, set up a dataadapter and just call update
dataAdapter1.Update(ds.Tables[0]) //you may need multiple adapters

depending
on how many tables you have.

HTH,

Bill
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:up**************@TK2MSFTNGP09.phx.gbl...
> William;
>
> Thanks for the reply. Do you have a pointer to information or examples
of
> how to accomplish this? I am feeling like it is a catch 22 since the

only
> way I see to get a datatable is to have a dataset to contain it but
I have
> not yet created the dataset. I am unsure of how to accomplish this.
>
> Wayne
>
> "William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
> news:%2****************@TK2MSFTNGP12.phx.gbl...
> > One easy way is to load the data into a datatable instead of
arrays, or
> use
> > the arrays to load a datatable. Put the datatable in a dataset
and use
> the
> > .WriteXML method to write it and DataSet.ReadXML to read it.
> >
> > You can also make your Arrays memebers of a class and mark the
class as
> > Serializable and use the serialization libraries to accomplish

this. > >
> > HTH,
> >
> > Bill
> > "Wayne Wengert" <wa***************@wengert.com> wrote in message
> > news:OV**************@TK2MSFTNGP10.phx.gbl...
> > > I am trying to build a VB.NET Windows application in which I want to > > create
> > > an XML file from data collected from the user and stored in

arrays.
I
am
> > > looking for any pointers to information on how to accomplish

this. > > >
> > > TIA
> > >
> > > Wayne
> > >
> > >
> >
> >
>
>



Jul 21 '05 #7
myDataSet.ReadXML(@"Path:\File.xml");

THis may aslo be helpful
http://www.knowdotnet.com/articles/datarelation.html
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OA*************@TK2MSFTNGP12.phx.gbl...
Thanks for the continued education.

When you say you loaded my XML into a dataset, exactly how did you do that?
As for the tables, there is no link - I can easily give each show data entry an identity value ("ShowID") and then use that as a link in the entries
table.

Wayne
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl...
I just loaded your xml into a dataset and got two tables as expected. In
your dataset or object, you need a link between the two, there doesn't
appear to be one. If one value is common in both tables, then you can use
a
DataRelation and the rest is really easy, I can walk you through it in a few
minutes. However, do I understand the structure correctly in that there

is some sort of relationship between the two, some link between the two
tables.?
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:#w**************@tk2msftngp13.phx.gbl...
Thanks for the help here. I know I am confused on procedures and terms for all this. Basically, I want to end up with an XML file similar to the one shown below. I currently have 2 arrays - one with just the common show

data
(showname and showdate) and another array with sets of values for each

entry
(name, team, event, time).

From what I've read I believe I want to create a new datatable for each of
those 2 current arrays and define columns as appropriate? But since
the contest data table will have just one row and the entries table will
have many rows I don't see how to build an object from which I can export the XML
I need. I've though of a cross join (right term?) where the output
will consist of rows where the contest data is repeated in each row. That

seems inefficient?

Any pointers are much appreciated

================================================

<contest>
<contestinfo>
<contestname>South Side Contest</contestname>
<contestdate>2004-05-07</contestdate>
</contestinfo>
<entry>
<name>Johnny Jones</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Mary Smith</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry>
<name>Ed Brown</name>
<team>Hot Shots</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
<entry>
<name>Jack Green</name>
<team>Marauders</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
</contest>
=============================================

Wayne

"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:eh*************@TK2MSFTNGP11.phx.gbl...
> Hi Wayne:
>
> What part do you need? I'll try to find something in particular.
>
> if you have a datatab;le, the rest is easy:
>
> DataSet ds = new DataSet();
> ds.Tables.Add(DataTableYouCretaed);
> ds.WriteXML(@"Path:\Fielname.xml");
>
> then, set up a dataadapter and just call update
> dataAdapter1.Update(ds.Tables[0]) //you may need multiple adapters
depending
> on how many tables you have.
>
> HTH,
>
> Bill
> "Wayne Wengert" <wa***************@wengert.com> wrote in message
> news:up**************@TK2MSFTNGP09.phx.gbl...
> > William;
> >
> > Thanks for the reply. Do you have a pointer to information or examples of
> > how to accomplish this? I am feeling like it is a catch 22 since the only
> > way I see to get a datatable is to have a dataset to contain it but I
have
> > not yet created the dataset. I am unsure of how to accomplish
this. > >
> > Wayne
> >
> > "William Ryan eMVP" <do********@comcast.nospam.net> wrote in message > > news:%2****************@TK2MSFTNGP12.phx.gbl...
> > > One easy way is to load the data into a datatable instead of

arrays, or
> > use
> > > the arrays to load a datatable. Put the datatable in a dataset and use
> > the
> > > .WriteXML method to write it and DataSet.ReadXML to read it.
> > >
> > > You can also make your Arrays memebers of a class and mark the class as
> > > Serializable and use the serialization libraries to accomplish this. > > >
> > > HTH,
> > >
> > > Bill
> > > "Wayne Wengert" <wa***************@wengert.com> wrote in message
> > > news:OV**************@TK2MSFTNGP10.phx.gbl...
> > > > I am trying to build a VB.NET Windows application in which I want
to
> > > create
> > > > an XML file from data collected from the user and stored in

arrays.
I
> am
> > > > looking for any pointers to information on how to accomplish

this. > > > >
> > > > TIA
> > > >
> > > > Wayne
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #8
William;

I changed the XML code to include the relations (I hope) and that new file
is below. I am still having trouble working with the file. I took your
sample for reading the XML data into a dataset but I still am confused about
exactly what needs to be done to get to the data. I have the following code
(VB) but I don't see how to bind the data to the grid - Intellisense does
not show "DataBind" as a method.

========================== Code =============================
' Instantiate the DataSet variable.

Dim dsImportXML As DataSet

dsImportXML = New DataSet

dsImportXML.ReadXml("c:\temp\contest.xml")

DataGrid1.DataSource = dsImportXML.Tables(0)

==> Want to Bind here <==

================================================== ===========

======================= XML File ==============================
<?xml version="1.0" encoding="utf-8" ?>

<!-- Test for Contest File -->
<contest>
<contestinfo contestid="005">
<contestname>South Side Contest</contestname>
<contestdate>2004-05-07</contestdate>
</contestinfo>
<entry contestid="005">
<name>Johnny Jones</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry contestid="005">
<name>Mary Smith</name>
<team>Marauders</team>
<event>Relay Race</event>
<time>10:30 AM</time>
</entry>
<entry contestid="005">
<name>Ed Brown</name>
<team>Hot Shots</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
<entry contestid="005">
<name>Jack Green</name>
<team>Marauders</team>
<event>200 Yd</event>
<time>10:45 AM</time>
</entry>
</contest>
================================================== ===========

Wayne
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
myDataSet.ReadXML(@"Path:\File.xml");

THis may aslo be helpful
http://www.knowdotnet.com/articles/datarelation.html
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:OA*************@TK2MSFTNGP12.phx.gbl...
Thanks for the continued education.

When you say you loaded my XML into a dataset, exactly how did you do that?

As for the tables, there is no link - I can easily give each show data

entry
an identity value ("ShowID") and then use that as a link in the entries
table.

Wayne
"William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
news:O0**************@TK2MSFTNGP12.phx.gbl...
I just loaded your xml into a dataset and got two tables as expected. In your dataset or object, you need a link between the two, there doesn't
appear to be one. If one value is common in both tables, then you can use
a
DataRelation and the rest is really easy, I can walk you through it in a
few
minutes. However, do I understand the structure correctly in that
there is some sort of relationship between the two, some link between the two
tables.?
"Wayne Wengert" <wa***************@wengert.com> wrote in message
news:#w**************@tk2msftngp13.phx.gbl...
> Thanks for the help here. I know I am confused on procedures and
terms for
> all this. Basically, I want to end up with an XML file similar to
the one
> shown below. I currently have 2 arrays - one with just the common
show data
> (showname and showdate) and another array with sets of values for each entry
> (name, team, event, time).
>
> From what I've read I believe I want to create a new datatable for

each
of
> those 2 current arrays and define columns as appropriate? But since

the > contest data table will have just one row and the entries table will

have
> many rows I don't see how to build an object from which I can export the XML
> I need. I've though of a cross join (right term?) where the output will > consist of rows where the contest data is repeated in each row. That

seems
> inefficient?
>
> Any pointers are much appreciated
>
> ================================================
>
> <contest>
> <contestinfo>
> <contestname>South Side Contest</contestname>
> <contestdate>2004-05-07</contestdate>
> </contestinfo>
> <entry>
> <name>Johnny Jones</name>
> <team>Marauders</team>
> <event>Relay Race</event>
> <time>10:30 AM</time>
> </entry>
> <entry>
> <name>Mary Smith</name>
> <team>Marauders</team>
> <event>Relay Race</event>
> <time>10:30 AM</time>
> </entry>
> <entry>
> <name>Ed Brown</name>
> <team>Hot Shots</team>
> <event>200 Yd</event>
> <time>10:45 AM</time>
> </entry>
> <entry>
> <name>Jack Green</name>
> <team>Marauders</team>
> <event>200 Yd</event>
> <time>10:45 AM</time>
> </entry>
> </contest>
> =============================================
>
> Wayne
>
> "William Ryan eMVP" <do********@comcast.nospam.net> wrote in message
> news:eh*************@TK2MSFTNGP11.phx.gbl...
> > Hi Wayne:
> >
> > What part do you need? I'll try to find something in particular.
> >
> > if you have a datatab;le, the rest is easy:
> >
> > DataSet ds = new DataSet();
> > ds.Tables.Add(DataTableYouCretaed);
> > ds.WriteXML(@"Path:\Fielname.xml");
> >
> > then, set up a dataadapter and just call update
> > dataAdapter1.Update(ds.Tables[0]) //you may need multiple adapters
> depending
> > on how many tables you have.
> >
> > HTH,
> >
> > Bill
> > "Wayne Wengert" <wa***************@wengert.com> wrote in message
> > news:up**************@TK2MSFTNGP09.phx.gbl...
> > > William;
> > >
> > > Thanks for the reply. Do you have a pointer to information or

examples
> of
> > > how to accomplish this? I am feeling like it is a catch 22 since the > only
> > > way I see to get a datatable is to have a dataset to contain it but
I
> have
> > > not yet created the dataset. I am unsure of how to accomplish

this. > > >
> > > Wayne
> > >
> > > "William Ryan eMVP" <do********@comcast.nospam.net> wrote in message > > > news:%2****************@TK2MSFTNGP12.phx.gbl...
> > > > One easy way is to load the data into a datatable instead of

arrays,
> or
> > > use
> > > > the arrays to load a datatable. Put the datatable in a dataset and
> use
> > > the
> > > > .WriteXML method to write it and DataSet.ReadXML to read it.
> > > >
> > > > You can also make your Arrays memebers of a class and mark the

class
> as
> > > > Serializable and use the serialization libraries to accomplish

this.
> > > >
> > > > HTH,
> > > >
> > > > Bill
> > > > "Wayne Wengert" <wa***************@wengert.com> wrote in

message > > > > news:OV**************@TK2MSFTNGP10.phx.gbl...
> > > > > I am trying to build a VB.NET Windows application in which I

want
to
> > > > create
> > > > > an XML file from data collected from the user and stored in
arrays.
> I
> > am
> > > > > looking for any pointers to information on how to accomplish

this.
> > > > >
> > > > > TIA
> > > > >
> > > > > Wayne
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Jul 21 '05 #9

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

Similar topics

6
by: Niyazi | last post by:
Hi, We have and IBM AS400 and I belive the reional setting is Turkish. The IBM Client-Access for Windows that install in our PC (WIN XP SP2) set to Turkish characters. Now my PC has English...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
0
by: Shravan | last post by:
Hi, I have a Windows Forms Custom DataGrid, which is put in a usercontrol, which on setting DataSource is setting focus to grid. The call stack for setting the focus is as follows. This is not...
2
by: junlia | last post by:
Hi All, I am working on a project that acts as a bridge. It does some checking with post xml data, and then redirects the request to an appropriate page. However, we find that depends on the...
1
by: Dachshund Digital | last post by:
I know there must be a way to do this... in .NET 2.0? I have a situation where I know the name of the setting, and want to pass it into a function, and set or get the corresponding setting. ...
1
by: laredotornado | last post by:
Hi, I'm using PHP 4.4.4 on Apache 2 on Fedora Core 5. PHP was installed using Apache's apxs and the php library was installed to /usr/local/php. However, when I set my "error_reporting"...
7
by: Ronald S. Cook | last post by:
In a .NET Windows app, if I set somehting like the title of the form to "MyApp" at run-time, will that make the app run slightly slower than if I had set the title at design-time? Thanks, Ron
6
by: metaperl | last post by:
I would like to check the setting of this variable in our MS-SQL 2000 database. Also, is there info on what the default value of this variable is?
8
by: Andrus | last post by:
..NET 2 Winforms application. How to create new setting and set it default value in userSettings section of app.config file or overwrite existing setting value ? I found code below in this list...
7
by: PetterL | last post by:
I have a setting called My.settings.firstrun set to True, set in the setting manager. When i read this in the first form form_Load in a IF sentence it always come out as false. I have tried to...
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: 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
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
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...
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.