XML into Dataset from HTTP

Alistair

Member
Joined
Jul 30, 2004
Messages
16
Currently, my app makes a HTTP request of the server, the server responds in XML (about 1400 records, two columns). The client receives the XML into a memory stream and then loads the memory stream into a dataset using ds.readxml(ms).

The HTTP -> MemoryStream portion is very fast. Its done on average in about 2 seconds, but MemoryStream -> Dataset can take up 30 seconds and beyond.

Question 1: Can this be sped up? Should the server respond with a different format? Perhaps some sort of preformatted dataset?

Question 2: If using ds.readxml(ms) is the right way and Im just going to have to live with the speed issue, is there a way to translate the progress of ReadXML into a ProgressBar?
 
Back
Top