G
Guest
Hi All.
Although this may be a very simple thing to do, I am having great difficulty
creating a stream from a string variable. In my vb.net CF (WinCE)
application, I have a string variable containing an XML document that I want
to load into a dataset. I see that there was a previous post related to this
("Read a dataset from a stream"), and I've tried to follow these
instructions, but to no avail. I've also tried cheating and just reading the
string directly into the XMLTextReader, but that throws an exception as well
(System.ArgumentException).
I can't seem to find the right implementation of the Stream class that will
read my string variable. I would appreciate it if anyone could tell me how to
load my string variable into the appropriate Stream object so that it can be
read by the XMLTextReader, which in turn will be passed to the
DataSet.readXML(XMLReader reader), as per the previous post I mentioned.
Thanks very much in advance.
Although this may be a very simple thing to do, I am having great difficulty
creating a stream from a string variable. In my vb.net CF (WinCE)
application, I have a string variable containing an XML document that I want
to load into a dataset. I see that there was a previous post related to this
("Read a dataset from a stream"), and I've tried to follow these
instructions, but to no avail. I've also tried cheating and just reading the
string directly into the XMLTextReader, but that throws an exception as well
(System.ArgumentException).
I can't seem to find the right implementation of the Stream class that will
read my string variable. I would appreciate it if anyone could tell me how to
load my string variable into the appropriate Stream object so that it can be
read by the XMLTextReader, which in turn will be passed to the
DataSet.readXML(XMLReader reader), as per the previous post I mentioned.
Thanks very much in advance.