I am using System.Net.WebRequest to get XML string in VB.NET. Here is my codes:
--------------------------------------------------------------------------
Dim strURL
Dim objXML As WebRequestd
Dim strResponse As WebResponse
objXML = WebRequest.Create(strURL)
strResponse = objXML.GetResponse()
objXML = Nothing
strResponse.Close()
-------------------------------------------------
When I debug printed strResponse, it contains :
{System.Net.HttpWebResponse}
[System.Net.HttpWebResponse]:
{System.Net.HttpWebResponse}
ContentLength: 3315
ContentType: "text/html; charset=utf-8"
Headers: {System.Net.WebHeaderCollection}
ResponseUri: {System.Uri}
----------------------------------------------------
How do I get the XML string and parse the content?
Thanks.
Dan-Yeung
--------------------------------------------------------------------------
Dim strURL
Dim objXML As WebRequestd
Dim strResponse As WebResponse
objXML = WebRequest.Create(strURL)
strResponse = objXML.GetResponse()
objXML = Nothing
strResponse.Close()
-------------------------------------------------
When I debug printed strResponse, it contains :
{System.Net.HttpWebResponse}
[System.Net.HttpWebResponse]:
{System.Net.HttpWebResponse}
ContentLength: 3315
ContentType: "text/html; charset=utf-8"
Headers: {System.Net.WebHeaderCollection}
ResponseUri: {System.Uri}
----------------------------------------------------
How do I get the XML string and parse the content?
Thanks.
Dan-Yeung