G
Guest
Hi All,
I am trying to read a 37 mb xml from a url into a stream and then store it
in a string variable "_xml". When I try to pass this string as a StringReader
object to the ReadXml method, my m/c hangs and I have to kill the process.
Is there any upper limit on the size of data which can be passed to the
Dataset's ReadXml method? If yes, can anyone point me to the documentation or
help me resolve this issue.
Here is the piece of code:
WebClient wc = new WebClient();
Stream stream = wc.OpenRead(_url); //Url returns 37mb xml data.
StreamReader sReader = new StreamReader(stream);
string _xml = sReader.ReadToEnd();
_ds = new DataSet();
_ds.ReadXml(new StringReader(_xml), XmlReadMode.InferSchema);
Thanks in advance.
Savvy
I am trying to read a 37 mb xml from a url into a stream and then store it
in a string variable "_xml". When I try to pass this string as a StringReader
object to the ReadXml method, my m/c hangs and I have to kill the process.
Is there any upper limit on the size of data which can be passed to the
Dataset's ReadXml method? If yes, can anyone point me to the documentation or
help me resolve this issue.
Here is the piece of code:
WebClient wc = new WebClient();
Stream stream = wc.OpenRead(_url); //Url returns 37mb xml data.
StreamReader sReader = new StreamReader(stream);
string _xml = sReader.ReadToEnd();
_ds = new DataSet();
_ds.ReadXml(new StringReader(_xml), XmlReadMode.InferSchema);
Thanks in advance.
Savvy