473,385 Members | 1,764 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,385 software developers and data experts.

Convert XML String to Dataset

I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string
from a dataset. I am looking for a way to create a dataset from this XML
string. I tried DataSetForXML.ReadXml(XMLDataToString) but I received error
messages. Does anyone know how to do this without creating a file (disk
copy) of this XML data? Thanks for your help.
Marc
Nov 21 '05 #1
12 23718
Mark,
Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml from
the named file.

Have you tried ReadXml(TextReader)? Specifically with a StringReader?

Something like:

Dim reader As New System.Io.StringReader(XMLDataToString)
DataSetForXML.ReadXml(reader)

For details see:

http://msdn.microsoft.com/library/de...ClassTopic.asp

http://msdn.microsoft.com/library/de...dXmlTopic3.asp

Hope this helps
Jay
"Marc" <Ma**@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
|I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string
| from a dataset. I am looking for a way to create a dataset from this XML
| string. I tried DataSetForXML.ReadXml(XMLDataToString) but I received
error
| messages. Does anyone know how to do this without creating a file (disk
| copy) of this XML data? Thanks for your help.
| Marc
Nov 21 '05 #2
Jay,
That worked great! Just when you think you have tried everything. Thanks
so much for your help.
Marc

"Jay B. Harlow [MVP - Outlook]" wrote:
Mark,
Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml from
the named file.

Have you tried ReadXml(TextReader)? Specifically with a StringReader?

Something like:

Dim reader As New System.Io.StringReader(XMLDataToString)
DataSetForXML.ReadXml(reader)

For details see:

http://msdn.microsoft.com/library/de...ClassTopic.asp

http://msdn.microsoft.com/library/de...dXmlTopic3.asp

Hope this helps
Jay
"Marc" <Ma**@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
|I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string
| from a dataset. I am looking for a way to create a dataset from this XML
| string. I tried DataSetForXML.ReadXml(XMLDataToString) but I received
error
| messages. Does anyone know how to do this without creating a file (disk
| copy) of this XML data? Thanks for your help.
| Marc

Nov 21 '05 #3
I know this is almost a month old, but I was having the same challenges and
tried your suggestions. They worked fine, but now, how do I get to the
fields in the Dataset?? Do they 'magically' appear as
".Fields(<Fieldname>).Value" once the XML String is read??

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Mark,
Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml from
the named file.

Have you tried ReadXml(TextReader)? Specifically with a StringReader?

Something like:

Dim reader As New System.Io.StringReader(XMLDataToString)
DataSetForXML.ReadXml(reader)

For details see:

http://msdn.microsoft.com/library/de...ClassTopic.asp

http://msdn.microsoft.com/library/de...dXmlTopic3.asp

Hope this helps
Jay
"Marc" <Ma**@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
|I have used XMLDataToString = DataSetForXML.GetXml() to get an XML string
| from a dataset. I am looking for a way to create a dataset from this
XML
| string. I tried DataSetForXML.ReadXml(XMLDataToString) but I received
error
| messages. Does anyone know how to do this without creating a file (disk
| copy) of this XML data? Thanks for your help.
| Marc

Nov 21 '05 #4
Any help? Bueller? Bueller? NE1? NE1?
"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:u4**************@TK2MSFTNGP15.phx.gbl...
I know this is almost a month old, but I was having the same challenges and
tried your suggestions. They worked fine, but now, how do I get to the
fields in the Dataset?? Do they 'magically' appear as
".Fields(<Fieldname>).Value" once the XML String is read??

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Mark,
Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml from
the named file.

Have you tried ReadXml(TextReader)? Specifically with a StringReader?

Something like:

Dim reader As New System.Io.StringReader(XMLDataToString)
DataSetForXML.ReadXml(reader)

For details see:

http://msdn.microsoft.com/library/de...ClassTopic.asp

http://msdn.microsoft.com/library/de...dXmlTopic3.asp

Hope this helps
Jay
"Marc" <Ma**@discussions.microsoft.com> wrote in message
news:D3**********************************@microsof t.com...
|I have used XMLDataToString = DataSetForXML.GetXml() to get an XML
string
| from a dataset. I am looking for a way to create a dataset from this
XML
| string. I tried DataSetForXML.ReadXml(XMLDataToString) but I received
error
| messages. Does anyone know how to do this without creating a file
(disk
| copy) of this XML data? Thanks for your help.
| Marc


Nov 21 '05 #5
Bryan,
You can get the DataColumns of a DataTable via the DataTable.Columns
property.

For a complete explanation of Datasets, DataTables, & DataAdapters along
with how to use them. I would strongly recommend you read David Sceppa's
book "Microsoft ADO.NET - Core Reference" from MS Press. As it is both a
good tutorial on ADO.NET as well as a good desk reference once you know
ADO.NET.

Hope this helps
Jay
"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:u4**************@TK2MSFTNGP15.phx.gbl...
|I know this is almost a month old, but I was having the same challenges and
| tried your suggestions. They worked fine, but now, how do I get to the
| fields in the Dataset?? Do they 'magically' appear as
| ".Fields(<Fieldname>).Value" once the XML String is read??
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
| news:%2****************@TK2MSFTNGP12.phx.gbl...
| > Mark,
| > Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml
from
| > the named file.
| >
| > Have you tried ReadXml(TextReader)? Specifically with a StringReader?
| >
| > Something like:
| >
| > Dim reader As New System.Io.StringReader(XMLDataToString)
| > DataSetForXML.ReadXml(reader)
| >
| > For details see:
| >
| >
http://msdn.microsoft.com/library/de...ClassTopic.asp
| >
| >
http://msdn.microsoft.com/library/de...dXmlTopic3.asp
| >
| > Hope this helps
| > Jay
| >
| >
| > "Marc" <Ma**@discussions.microsoft.com> wrote in message
| > news:D3**********************************@microsof t.com...
| > |I have used XMLDataToString = DataSetForXML.GetXml() to get an XML
string
| > | from a dataset. I am looking for a way to create a dataset from this
| > XML
| > | string. I tried DataSetForXML.ReadXml(XMLDataToString) but I received
| > error
| > | messages. Does anyone know how to do this without creating a file
(disk
| > | copy) of this XML data? Thanks for your help.
| > | Marc
| >
| >
|
|
Nov 21 '05 #6
Do you know of anything online docs that might tell me something similar?

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:O%***************@TK2MSFTNGP12.phx.gbl...
Bryan,
You can get the DataColumns of a DataTable via the DataTable.Columns
property.

For a complete explanation of Datasets, DataTables, & DataAdapters along
with how to use them. I would strongly recommend you read David Sceppa's
book "Microsoft ADO.NET - Core Reference" from MS Press. As it is both a
good tutorial on ADO.NET as well as a good desk reference once you know
ADO.NET.

Hope this helps
Jay
"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:u4**************@TK2MSFTNGP15.phx.gbl...
|I know this is almost a month old, but I was having the same challenges
and
| tried your suggestions. They worked fine, but now, how do I get to the
| fields in the Dataset?? Do they 'magically' appear as
| ".Fields(<Fieldname>).Value" once the XML String is read??
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
message
| news:%2****************@TK2MSFTNGP12.phx.gbl...
| > Mark,
| > Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml
from
| > the named file.
| >
| > Have you tried ReadXml(TextReader)? Specifically with a StringReader?
| >
| > Something like:
| >
| > Dim reader As New System.Io.StringReader(XMLDataToString)
| > DataSetForXML.ReadXml(reader)
| >
| > For details see:
| >
| >
http://msdn.microsoft.com/library/de...ClassTopic.asp
| >
| >
http://msdn.microsoft.com/library/de...dXmlTopic3.asp
| >
| > Hope this helps
| > Jay
| >
| >
| > "Marc" <Ma**@discussions.microsoft.com> wrote in message
| > news:D3**********************************@microsof t.com...
| > |I have used XMLDataToString = DataSetForXML.GetXml() to get an XML
string
| > | from a dataset. I am looking for a way to create a dataset from
this
| > XML
| > | string. I tried DataSetForXML.ReadXml(XMLDataToString) but I
received
| > error
| > | messages. Does anyone know how to do this without creating a file
(disk
| > | copy) of this XML data? Thanks for your help.
| > | Marc
| >
| >
|
|

Nov 21 '05 #7
Bryan,
MSDN (http://msdn.microsoft.com) although I prefer the online local help
over the web help, however the content is the same.

Plus a plethora of other sites, google on DataSet and/or DataTable...

I would strongly recommend Sceppa's book! As its both a good tutorial & a
good desk reference. Far "better" & more "complete" then anything thing else
I've seen on ADO.NET.

Hope this helps
Jay

"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
| Do you know of anything online docs that might tell me something similar?
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
| news:O%***************@TK2MSFTNGP12.phx.gbl...
| > Bryan,
| > You can get the DataColumns of a DataTable via the DataTable.Columns
| > property.
| >
| > For a complete explanation of Datasets, DataTables, & DataAdapters along
| > with how to use them. I would strongly recommend you read David Sceppa's
| > book "Microsoft ADO.NET - Core Reference" from MS Press. As it is both a
| > good tutorial on ADO.NET as well as a good desk reference once you know
| > ADO.NET.
| >
| > Hope this helps
| > Jay
| >
| >
| > "Bryan Dickerson" <tx******@netscape.net> wrote in message
| > news:u4**************@TK2MSFTNGP15.phx.gbl...
| > |I know this is almost a month old, but I was having the same challenges
| > and
| > | tried your suggestions. They worked fine, but now, how do I get to
the
| > | fields in the Dataset?? Do they 'magically' appear as
| > | ".Fields(<Fieldname>).Value" once the XML String is read??
| > |
| > | "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
| > message
| > | news:%2****************@TK2MSFTNGP12.phx.gbl...
| > | > Mark,
| > | > Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads Xml
| > from
| > | > the named file.
| > | >
| > | > Have you tried ReadXml(TextReader)? Specifically with a
StringReader?
| > | >
| > | > Something like:
| > | >
| > | > Dim reader As New System.Io.StringReader(XMLDataToString)
| > | > DataSetForXML.ReadXml(reader)
| > | >
| > | > For details see:
| > | >
| > | >
| >
http://msdn.microsoft.com/library/de...ClassTopic.asp
| > | >
| > | >
| >
http://msdn.microsoft.com/library/de...dXmlTopic3.asp
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Marc" <Ma**@discussions.microsoft.com> wrote in message
| > | > news:D3**********************************@microsof t.com...
| > | > |I have used XMLDataToString = DataSetForXML.GetXml() to get an XML
| > string
| > | > | from a dataset. I am looking for a way to create a dataset from
| > this
| > | > XML
| > | > | string. I tried DataSetForXML.ReadXml(XMLDataToString) but I
| > received
| > | > error
| > | > | messages. Does anyone know how to do this without creating a file
| > (disk
| > | > | copy) of this XML data? Thanks for your help.
| > | > | Marc
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Nov 21 '05 #8
Oh, and I meant to answer with another question yesterday (but was at home
sick yesterday): I didn't find any "DataTable" or "DataColumn"
properties/methods on the Dataset class. So what am I not seeing?

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:uK**************@TK2MSFTNGP10.phx.gbl...
Bryan,
MSDN (http://msdn.microsoft.com) although I prefer the online local help
over the web help, however the content is the same.

Plus a plethora of other sites, google on DataSet and/or DataTable...

I would strongly recommend Sceppa's book! As its both a good tutorial & a
good desk reference. Far "better" & more "complete" then anything thing
else
I've seen on ADO.NET.

Hope this helps
Jay

"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
| Do you know of anything online docs that might tell me something
similar?
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
message
| news:O%***************@TK2MSFTNGP12.phx.gbl...
| > Bryan,
| > You can get the DataColumns of a DataTable via the DataTable.Columns
| > property.
| >
| > For a complete explanation of Datasets, DataTables, & DataAdapters
along
| > with how to use them. I would strongly recommend you read David
Sceppa's
| > book "Microsoft ADO.NET - Core Reference" from MS Press. As it is both
a
| > good tutorial on ADO.NET as well as a good desk reference once you
know
| > ADO.NET.
| >
| > Hope this helps
| > Jay
| >
| >
| > "Bryan Dickerson" <tx******@netscape.net> wrote in message
| > news:u4**************@TK2MSFTNGP15.phx.gbl...
| > |I know this is almost a month old, but I was having the same
challenges
| > and
| > | tried your suggestions. They worked fine, but now, how do I get to
the
| > | fields in the Dataset?? Do they 'magically' appear as
| > | ".Fields(<Fieldname>).Value" once the XML String is read??
| > |
| > | "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
| > message
| > | news:%2****************@TK2MSFTNGP12.phx.gbl...
| > | > Mark,
| > | > Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads
Xml
| > from
| > | > the named file.
| > | >
| > | > Have you tried ReadXml(TextReader)? Specifically with a
StringReader?
| > | >
| > | > Something like:
| > | >
| > | > Dim reader As New System.Io.StringReader(XMLDataToString)
| > | > DataSetForXML.ReadXml(reader)
| > | >
| > | > For details see:
| > | >
| > | >
| >
http://msdn.microsoft.com/library/de...ClassTopic.asp
| > | >
| > | >
| >
http://msdn.microsoft.com/library/de...dXmlTopic3.asp
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Marc" <Ma**@discussions.microsoft.com> wrote in message
| > | > news:D3**********************************@microsof t.com...
| > | > |I have used XMLDataToString = DataSetForXML.GetXml() to get an
XML
| > string
| > | > | from a dataset. I am looking for a way to create a dataset from
| > this
| > | > XML
| > | > | string. I tried DataSetForXML.ReadXml(XMLDataToString) but I
| > received
| > | > error
| > | > | messages. Does anyone know how to do this without creating a
file
| > (disk
| > | > | copy) of this XML data? Thanks for your help.
| > | > | Marc
| > | >
| > | >
| > |
| > |
| >
| >
|
|

Nov 21 '05 #9
Bryan,
DataTable & DataColumn are types.

Remember that a DataSet contains zero or more DataTables, that a DataTable
has one or more DataColumns, and zero or more DataRows.

In other words the DataSet has a Tables property that returns a
DataTableCollection type. The DataTableCollection contains a collection of
DataTables. The DataTable has a Columns property that returns a
DataColumnCollection type. The DataColumnCollection contains a collection of
DataColumns.

You may want to review this section of MSDN:

http://msdn.microsoft.com/library/de...withadonet.asp

Specifically:

http://msdn.microsoft.com/library/de...ewofadonet.asp

http://msdn.microsoft.com/library/de...netdataset.asp

http://msdn.microsoft.com/library/de...ngdatasets.asp

http://msdn.microsoft.com/library/de...datatables.asp

http://msdn.microsoft.com/library/de...gdataviews.asp

However I would strongly recommend you read the entire section & Sceppa's
book.

Hope this helps
Jay

"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
| Oh, and I meant to answer with another question yesterday (but was at home
| sick yesterday): I didn't find any "DataTable" or "DataColumn"
| properties/methods on the Dataset class. So what am I not seeing?
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
| news:uK**************@TK2MSFTNGP10.phx.gbl...
| > Bryan,
| > MSDN (http://msdn.microsoft.com) although I prefer the online local help
| > over the web help, however the content is the same.
| >
| > Plus a plethora of other sites, google on DataSet and/or DataTable...
| >
| > I would strongly recommend Sceppa's book! As its both a good tutorial &
a
| > good desk reference. Far "better" & more "complete" then anything thing
| > else
| > I've seen on ADO.NET.
| >
| > Hope this helps
| > Jay
| >
| > "Bryan Dickerson" <tx******@netscape.net> wrote in message
| > news:%2****************@TK2MSFTNGP09.phx.gbl...
| > | Do you know of anything online docs that might tell me something
| > similar?
| > |
| > | "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
| > message
| > | news:O%***************@TK2MSFTNGP12.phx.gbl...
| > | > Bryan,
| > | > You can get the DataColumns of a DataTable via the DataTable.Columns
| > | > property.
| > | >
| > | > For a complete explanation of Datasets, DataTables, & DataAdapters
| > along
| > | > with how to use them. I would strongly recommend you read David
| > Sceppa's
| > | > book "Microsoft ADO.NET - Core Reference" from MS Press. As it is
both
| > a
| > | > good tutorial on ADO.NET as well as a good desk reference once you
| > know
| > | > ADO.NET.
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Bryan Dickerson" <tx******@netscape.net> wrote in message
| > | > news:u4**************@TK2MSFTNGP15.phx.gbl...
| > | > |I know this is almost a month old, but I was having the same
| > challenges
| > | > and
| > | > | tried your suggestions. They worked fine, but now, how do I get
to
| > the
| > | > | fields in the Dataset?? Do they 'magically' appear as
| > | > | ".Fields(<Fieldname>).Value" once the XML String is read??
| > | > |
| > | > | "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
| > | > message
| > | > | news:%2****************@TK2MSFTNGP12.phx.gbl...
| > | > | > Mark,
| > | > | > Notice that DataSet.ReadXml is overloaded. ReadXml(String) reads
| > Xml
| > | > from
| > | > | > the named file.
| > | > | >
| > | > | > Have you tried ReadXml(TextReader)? Specifically with a
| > StringReader?
| > | > | >
| > | > | > Something like:
| > | > | >
| > | > | > Dim reader As New System.Io.StringReader(XMLDataToString)
| > | > | > DataSetForXML.ReadXml(reader)
| > | > | >
| > | > | > For details see:
| > | > | >
| > | > | >
| > | >
| >
http://msdn.microsoft.com/library/de...ClassTopic.asp
| > | > | >
| > | > | >
| > | >
| >
http://msdn.microsoft.com/library/de...dXmlTopic3.asp
| > | > | >
| > | > | > Hope this helps
| > | > | > Jay
| > | > | >
| > | > | >
| > | > | > "Marc" <Ma**@discussions.microsoft.com> wrote in message
| > | > | > news:D3**********************************@microsof t.com...
| > | > | > |I have used XMLDataToString = DataSetForXML.GetXml() to get an
| > XML
| > | > string
| > | > | > | from a dataset. I am looking for a way to create a dataset
from
| > | > this
| > | > | > XML
| > | > | > | string. I tried DataSetForXML.ReadXml(XMLDataToString) but I
| > | > received
| > | > | > error
| > | > | > | messages. Does anyone know how to do this without creating a
| > file
| > | > (disk
| > | > | > | copy) of this XML data? Thanks for your help.
| > | > | > | Marc
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|
Nov 21 '05 #10
Jay,

However I would strongly recommend you read the entire section & Sceppa's
book.

Nothing wrong with your message and advice, however we missed this probably
for more than a year now.

To let you deal in my friendly smile.

:-)

Cor
Nov 21 '05 #11
Ah, said the blind man as he stumbled merrily along his way! I found them.
Thx!

"Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in message
news:eV**************@TK2MSFTNGP12.phx.gbl...
Bryan,
DataTable & DataColumn are types.

Remember that a DataSet contains zero or more DataTables, that a DataTable
has one or more DataColumns, and zero or more DataRows.

In other words the DataSet has a Tables property that returns a
DataTableCollection type. The DataTableCollection contains a collection of
DataTables. The DataTable has a Columns property that returns a
DataColumnCollection type. The DataColumnCollection contains a collection
of
DataColumns.

You may want to review this section of MSDN:

http://msdn.microsoft.com/library/de...withadonet.asp

Specifically:

http://msdn.microsoft.com/library/de...ewofadonet.asp

http://msdn.microsoft.com/library/de...netdataset.asp

http://msdn.microsoft.com/library/de...ngdatasets.asp

http://msdn.microsoft.com/library/de...datatables.asp

http://msdn.microsoft.com/library/de...gdataviews.asp

However I would strongly recommend you read the entire section & Sceppa's
book.

Hope this helps
Jay

"Bryan Dickerson" <tx******@netscape.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
| Oh, and I meant to answer with another question yesterday (but was at
home
| sick yesterday): I didn't find any "DataTable" or "DataColumn"
| properties/methods on the Dataset class. So what am I not seeing?
|
| "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
message
| news:uK**************@TK2MSFTNGP10.phx.gbl...
| > Bryan,
| > MSDN (http://msdn.microsoft.com) although I prefer the online local
help
| > over the web help, however the content is the same.
| >
| > Plus a plethora of other sites, google on DataSet and/or DataTable...
| >
| > I would strongly recommend Sceppa's book! As its both a good tutorial
&
a
| > good desk reference. Far "better" & more "complete" then anything
thing
| > else
| > I've seen on ADO.NET.
| >
| > Hope this helps
| > Jay
| >
| > "Bryan Dickerson" <tx******@netscape.net> wrote in message
| > news:%2****************@TK2MSFTNGP09.phx.gbl...
| > | Do you know of anything online docs that might tell me something
| > similar?
| > |
| > | "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote in
| > message
| > | news:O%***************@TK2MSFTNGP12.phx.gbl...
| > | > Bryan,
| > | > You can get the DataColumns of a DataTable via the
DataTable.Columns
| > | > property.
| > | >
| > | > For a complete explanation of Datasets, DataTables, & DataAdapters
| > along
| > | > with how to use them. I would strongly recommend you read David
| > Sceppa's
| > | > book "Microsoft ADO.NET - Core Reference" from MS Press. As it is
both
| > a
| > | > good tutorial on ADO.NET as well as a good desk reference once you
| > know
| > | > ADO.NET.
| > | >
| > | > Hope this helps
| > | > Jay
| > | >
| > | >
| > | > "Bryan Dickerson" <tx******@netscape.net> wrote in message
| > | > news:u4**************@TK2MSFTNGP15.phx.gbl...
| > | > |I know this is almost a month old, but I was having the same
| > challenges
| > | > and
| > | > | tried your suggestions. They worked fine, but now, how do I get
to
| > the
| > | > | fields in the Dataset?? Do they 'magically' appear as
| > | > | ".Fields(<Fieldname>).Value" once the XML String is read??
| > | > |
| > | > | "Jay B. Harlow [MVP - Outlook]" <Ja************@msn.com> wrote
in
| > | > message
| > | > | news:%2****************@TK2MSFTNGP12.phx.gbl...
| > | > | > Mark,
| > | > | > Notice that DataSet.ReadXml is overloaded. ReadXml(String)
reads
| > Xml
| > | > from
| > | > | > the named file.
| > | > | >
| > | > | > Have you tried ReadXml(TextReader)? Specifically with a
| > StringReader?
| > | > | >
| > | > | > Something like:
| > | > | >
| > | > | > Dim reader As New System.Io.StringReader(XMLDataToString)
| > | > | > DataSetForXML.ReadXml(reader)
| > | > | >
| > | > | > For details see:
| > | > | >
| > | > | >
| > | >
| >
http://msdn.microsoft.com/library/de...ClassTopic.asp
| > | > | >
| > | > | >
| > | >
| >
http://msdn.microsoft.com/library/de...dXmlTopic3.asp
| > | > | >
| > | > | > Hope this helps
| > | > | > Jay
| > | > | >
| > | > | >
| > | > | > "Marc" <Ma**@discussions.microsoft.com> wrote in message
| > | > | > news:D3**********************************@microsof t.com...
| > | > | > |I have used XMLDataToString = DataSetForXML.GetXml() to get
an
| > XML
| > | > string
| > | > | > | from a dataset. I am looking for a way to create a dataset
from
| > | > this
| > | > | > XML
| > | > | > | string. I tried DataSetForXML.ReadXml(XMLDataToString) but
I
| > | > received
| > | > | > error
| > | > | > | messages. Does anyone know how to do this without creating
a
| > file
| > | > (disk
| > | > | > | copy) of this XML data? Thanks for your help.
| > | > | > | Marc
| > | > | >
| > | > | >
| > | > |
| > | > |
| > | >
| > | >
| > |
| > |
| >
| >
|
|

Nov 21 '05 #12
Jay,

I use deal to often, when I mean share.
To let you deal in my friendly smile.

To let you share my friendly smile.

:-)

Cor
Nov 21 '05 #13

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

Similar topics

2
by: Nathan | last post by:
Is there a way to convert a string to a CipherMessage? I am calling a function that decrypts a CipherMessage and returns the value. The only problem is when I want to use an encrypted value stored...
2
by: Todd | last post by:
This is my first time trying to take the results of a query that reside in a Dataset and convert the dataset into an xml file. Everything works great, except that my resulting XML file is missing...
1
by: Anandan | last post by:
Hi, This is regarding Dataset Filter: WILDCARD CHARACTERS Both the * and % can be used interchangeably for wildcards in a LIKE comparison. If the string in a LIKE clause contains a * or %,...
3
by: Petr Jakes | last post by:
Hi, I am trying to convert string to the "escaped string". example: from "0xf" I need "\0xf" I am able to do it like: a="0xf" escaped_a=("\%s" % a ).decode("string_escape") But it looks a...
5
by: needin4mation | last post by:
Hi, I have a webservice that just returns a count: public DataSet HelloWorld() { OdbcConnection conn = new OdbcConnection("DSN=xxx"); String sqlString = "select count(*) as employee from...
3
by: Ursula | last post by:
Is it possible to convert a string in a file. The problem is this: I have an object string that is a file xml and I want to pass to Deserialize function, but Deserialize function expect an object...
3
by: Shawn Ferguson | last post by:
Hello All, I'm trying to do what I would think would be simple and straightforward, but it is not. I have a 2 textbox on a form, a label, and a button, when I click the botton I want to add the...
4
by: Man4ish | last post by:
HI , I am trying to convert string into char array of characters.but facing problem. #include <iostream> #include <string> using namespace std; int main() { string t="1,2,3,4,5,6";
12
by: Peter | last post by:
Trying to convert string to byte array. the following code returns byte array of {107, 62, 194, 139, 64} how can I convert this string to a byte array of {107, 62, 139, 65} ...
9
by: engteng | last post by:
How do I convert string to numeric in VB.NET 2003 ? Example convert P50001 to 50001 or 50001P to 50001 but if P is in middle then not convert. Regards, Tee
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...

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.