473,659 Members | 2,872 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1261
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******** ******@TK2MSFTN GP10.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********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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(D ataTableYouCret aed);
ds.WriteXML(@"P ath:\Fielname.x ml");

then, set up a dataadapter and just call update
dataAdapter1.Up date(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******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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>So uth Side Contest</contestname>
<contestdate>20 04-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********@com cast.nospam.net > wrote in message
news:eh******** *****@TK2MSFTNG P11.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(D ataTableYouCret aed);
ds.WriteXML(@"P ath:\Fielname.x ml");

then, set up a dataadapter and just call update
dataAdapter1.Up date(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******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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******** ******@tk2msftn gp13.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>So uth Side Contest</contestname>
<contestdate>20 04-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********@com cast.nospam.net > wrote in message
news:eh******** *****@TK2MSFTNG P11.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(D ataTableYouCret aed);
ds.WriteXML(@"P ath:\Fielname.x ml");

then, set up a dataadapter and just call update
dataAdapter1.Up date(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******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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********@com cast.nospam.net > wrote in message
news:O0******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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>So uth Side Contest</contestname>
<contestdate>20 04-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********@com cast.nospam.net > wrote in message
news:eh******** *****@TK2MSFTNG P11.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(D ataTableYouCret aed);
ds.WriteXML(@"P ath:\Fielname.x ml");

then, set up a dataadapter and just call update
dataAdapter1.Up date(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******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message
> news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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.ReadX ML(@"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******** *****@TK2MSFTNG P12.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********@com cast.nospam.net > wrote in message
news:O0******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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>So uth Side Contest</contestname>
<contestdate>20 04-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********@com cast.nospam.net > wrote in message
news:eh******** *****@TK2MSFTNG P11.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(D ataTableYouCret aed);
> ds.WriteXML(@"P ath:\Fielname.x ml");
>
> then, set up a dataadapter and just call update
> dataAdapter1.Up date(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******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message > > news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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.Rea dXml("c:\temp\c ontest.xml")

DataGrid1.DataS ource = dsImportXML.Tab les(0)

==> Want to Bind here <==

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

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

<!-- Test for Contest File -->
<contest>
<contestinfo contestid="005" >
<contestname>So uth Side Contest</contestname>
<contestdate>20 04-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********@com cast.nospam.net > wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
myDataSet.ReadX ML(@"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******** *****@TK2MSFTNG P12.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********@com cast.nospam.net > wrote in message
news:O0******** ******@TK2MSFTN GP12.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******** ******@tk2msftn gp13.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>So uth Side Contest</contestname>
> <contestdate>20 04-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********@com cast.nospam.net > wrote in message
> news:eh******** *****@TK2MSFTNG P11.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(D ataTableYouCret aed);
> > ds.WriteXML(@"P ath:\Fielname.x ml");
> >
> > then, set up a dataadapter and just call update
> > dataAdapter1.Up date(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******** ******@TK2MSFTN GP09.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********@com cast.nospam.net > wrote in message > > > news:%2******** ********@TK2MSF TNGP12.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******** ******@TK2MSFTN GP10.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
2728
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 (US) regional setting and I am not having any problem to connect. But If I change my PC Regional setting to Turkish all of my VB.NET code is
18
18359
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 a remote update of tables and fields and can't find enough information on these things. Also, how do you index a field in code?
0
1764
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 happened always whenever DataSource is set, only called sometimes, in a series of setting DataSource, I could get this setting focus only one time . Can anybody help me how to stop this one. system.windows.forms.dll!
2
2573
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 browser cache setting (and OS), the program behaves differently. This is how it should work: 1. The client program opens a webbrowser control, using navigate2 method to post xml data to my aspx pages, eg abc.aspx
1
2942
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. The following is find, but a pain if you have lots of settings to do in one go... My.Setting.Dachshund=1000 Dim theSetting As Integer=My.Setting.Dachshund
1
6476
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" setting to be "E_ALL", notices are still not getting reported. The perms on my file are 664, with owner root and group root. The php.ini file is located at /usr/local/lib/php/php.ini. Any ideas why the setting does not seem to be having an effect? ...
7
2001
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
10046
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
16091
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 which modifies Application setting section but how to add new item to userSettings ? Andrus.
7
1732
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 change the setting from string to Boolean but no help.
0
8427
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...
0
8851
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8746
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8525
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,...
1
6179
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
5649
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
4175
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
4335
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2750
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.