P
Patrick Olurotimi Ige
I'm using the Function below to get XML feeds
and calling the XML doc in
But if they are no availabe rss feeds i would like to display
"Sorry No Headlines/News at the moment"
Any ideas
page_load like:-
myXml.Document = getXML("http://www.crn.com.au/rss.aspx?SCID=9")
---------------------------------
Function getXML(ByVal sourceFile As String)
Dim myRequest As System.Net.WebRequest =
System.Net.WebRequest.Create(sourceFile)
Dim myResponse As System.Net.WebResponse =
myRequest.GetResponse()
Dim myReader As System.Xml.XmlTextReader = New
System.Xml.XmlTextReader(myResponse.GetResponseStream())
Dim doc As System.Xml.XmlDocument = New System.Xml.XmlDocument
doc.Load(myReader)
getXML = doc
myResponse.Close()
myReader.Close()
End Function
and calling the XML doc in
But if they are no availabe rss feeds i would like to display
"Sorry No Headlines/News at the moment"
Any ideas
page_load like:-
myXml.Document = getXML("http://www.crn.com.au/rss.aspx?SCID=9")
---------------------------------
Function getXML(ByVal sourceFile As String)
Dim myRequest As System.Net.WebRequest =
System.Net.WebRequest.Create(sourceFile)
Dim myResponse As System.Net.WebResponse =
myRequest.GetResponse()
Dim myReader As System.Xml.XmlTextReader = New
System.Xml.XmlTextReader(myResponse.GetResponseStream())
Dim doc As System.Xml.XmlDocument = New System.Xml.XmlDocument
doc.Load(myReader)
getXML = doc
myResponse.Close()
myReader.Close()
End Function