Eric,
I do a similar thing, but I don't think it takes this long. I wouldn't think it would make any difference, but ya never know. The two differences between how I do it and you do it, is that I create the StringReader outside of the ReadXml() method and I use the XmlReadMode.InferSchema. Try it and see if it speeds things up any:
StringReader sr = new StringReader(lcXML);
loDSZips.ReadXml(sr, XmlReadMode.InferSchema);
~~Bonnie
>
>
>DataSet loDSZips = new DataSet();
>loDSZips.ReadXml( new StringReader(lcXML) );
>
>
>
>In the above lines of code lcXML is an XML string that is returned by a VFP DLL using
>cursortoxml(). The method call to get a rather large string takes maybe 2 seconds, the ReadXml() call in the above code takes over 30 seconds.
>
>Is there a faster way to get an XML string into a dataset?