Hey peeps,
I have yet another question. After having stolen the wonderful AsyncDownloader code from the DownloadStringAsync - How? thread, I have a question. How do I turn the resulting String into a StreamReader of some kind so I can connect it to the code below:
Where I have the StreamReader connected to the status.xml file, I'd like to put a String from System.Net.DownloadStringCompletedEventArgs.Result since it now contains the file contents of status.xml. I was using a local copy for testing purpose but the real source is on the web.Code:Dim sr As New System.IO.StreamReader("status.xml") ' The XmlTextReader Dim xr As New System.Xml.XmlTextReader(sr) ' The XmlDocument Dim serverStatus As New System.Xml.XmlDocument serverStatus.Load(xr) Dim serverNodes As System.Xml.XmlNodeList = serverStatus.SelectNodes("rs/r")
Any ideas or pointers?


Reply With Quote