472,362 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,362 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 23625
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
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...

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.