Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
StringReader is Slow
Message
From
11/08/2004 21:14:35
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00932551
Message ID:
00932554
Views:
13
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?
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform