When I run it it won't show me any output of RSS feeds.
I just need a replacement for myXml.Document that works with ASP.net 2.0.
"Oleg Tkachenko [MVP]" <some@body.com> wrote in message
news:ulAw8e$dGHA.3932@TK2MSFTNGP05.phx.gbl...
> What exactly doesn't work? Any exceptions?
>
> --
> Oleg Tkachenko [XML MVP, MCAD]
>
http://www.XmlLab.Net |
http://www.XLinq.Net |
http://blog.tkachenko.com >
> SK wrote:
>> Hi,
>>
>> I have the following code and I'm using News.xsl to read the XML file -
>>
>> Private Sub Page_Load(ByVal sender As System.Object, ByVal e As
>> System.EventArgs) Handles MyBase.Load
>>
>> '----------------------------------------------------------------------------
>> THIS PAST (myXml.Document) IS NOT WORKING IN ASP.NET 2.0
>> '----------------------------------------------------------------------------
>> myXml.Document = getXML(nSource.SelectedItem.Value)
>> End Sub
>>
>> 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
>> End Function
>>
>> How to fix this issue? Please provide an example.
>>
>> Thanks
>> SK
>>