Can anybody tell me how to put this XML file from the NOAA web service into my VB application?
I can create the file and have put a copy of the created file here now I just need to put it in my vb application. I am not sure of how to do it or which control to woulb be best to use. I tried a dataset but I couldn't get that to work and am thinking that maybe a tree view would work.
Here is the code I have so far
VB Code:
Private Sub btnGetWeather_Click( _ ByVal sender As System.Object, _ ByVal e As System.EventArgs) Handles btnGetWeather.Click Try Dim decLat As Decimal = CDec(38.99) Dim decLon As Decimal = CDec(-77.99) Dim dtDate As Date = CDate("2006-06-28") Dim strDays As String = "5" Dim myWebService As New gov.weather.[url]www.ndfdXML[/url] TextBox1.Text = myWebService.NDFDgenByDay( _ decLat, _ decLon, _ dtDate, _ strDays, _ gov.weather.[url]www.formatType.Item12hourly[/url]) MessageBox.Show("success") Catch ex As Exception MessageBox.Show( _ ex.Message & vbNewLine & _ ex.Source & vbNewLine & _ ex.StackTrace, _ "Web Service Error", _ MessageBoxButtons.OK, _ MessageBoxIcon.Error) End Try
I just need to format the raw XML that comes back and put it in some control that will show it in a easy to read format.
Any advice will be much appreciated.




Reply With Quote