View Full Version : Weather feed

05-09-2007, 05:31 PM
This is my first post here and I am embarrassed to ask something on my first post but I could not find a way to make this work. I want to show weather degrees on my website receiving information from yahoo weather services. And I have codes below for this. The problem is these codes get all the information from the website but I need only one very very little portion of it; today’s weather degrees.

Dim objXML, objRoot, objItems
Set objXML = Server.CreateObject("Microsoft.XMLDOM")
objXML.Async = False
objXML.SetProperty "ServerHTTPRequest", True
objXML.ResolveExternals = True
objXML.ValidateOnParse = True
If (objXML.parseError.errorCode = 0) Then
Set objRoot = objXML.documentElement
If IsObject(objRoot) = False Then
response.write "Bağlantı Hatası!"
End If
Set objItems = objRoot.getElementsByTagName("item")
If IsObject(objItems) = True Then
Dim objItem
For Each objItem in objItems
response.write objItem.selectSingleNode("title").Text & "<b><a href='" & objItem.selectSingleNode("link").Text & "'>" & objItem.selectSingleNode("description").Text & "</a></b><br /><br />" & vblf
response.write "Bağlantı Hatası!"

End If
Set objItems = Nothing
Set objRoot = Nothing
End If
Set objXML = Nothing

Alex Vincent
05-10-2007, 05:11 AM
What language is that written in? ASP?

05-10-2007, 09:09 AM
I am sorry I forgot to mention that. Asp.

Alex Vincent
05-10-2007, 08:43 PM
Considering you already have the XML from the site, and you sound like you're near completion, this thread may belong in the ASP forum instead of here.

If no one else replies, I'll move this thread over to ASP later today.

05-11-2007, 06:51 PM
Alex please transfer this post to asp section. I hope I will find my answer there.

Alex Vincent
05-11-2007, 08:54 PM