UtilWebDownloadWebpageAsXml(String, KeyValuePairString, String) Method
Downloads the source-code of an Url that points to an Html document, then transforms it to Xml.
Namespace: DevCase.Core.Networking.CommonAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static XDocument DownloadWebpageAsXml(
string url,
params KeyValuePair<string, string>[] additionalHeaders
)
Public Shared Function DownloadWebpageAsXml (
url As String,
ParamArray additionalHeaders As KeyValuePair(Of String, String)()
) As XDocument
Dim url As String
Dim additionalHeaders As KeyValuePair(Of String, String)()
Dim returnValue As XDocument
returnValue = UtilWeb.DownloadWebpageAsXml(url,
additionalHeaders)
public:
static XDocument^ DownloadWebpageAsXml(
String^ url,
... array<KeyValuePair<String^, String^>>^ additionalHeaders
)
static member DownloadWebpageAsXml :
url : string *
additionalHeaders : KeyValuePair<string, string>[] -> XDocument
No code example is currently available or this language may not be supported.
- url String
-
The Url address.
- additionalHeaders KeyValuePairString, String
-
Specifies custom headers to perform the web request.
XDocument
The resulting source-code.
This is a code example.
No code example is currently available or this language may not be supported.
Dim xml As XDocument = DownloadWebpageAsXml("http://www.elhacker.net/", New KeyValuePair(Of String, String)("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)"))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.