LoadHtmlAsXml Method (String, XmlTextWriter)

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Loads an HTML document from an Internet resource and saves it to the specified XmlTextWriter.

Namespace: HtmlAgilityPack
Assembly: HtmlAgilityPack (in HtmlAgilityPack.dll) Version: 1.4.0.0 (1.4.0.0)

Syntax

C#
public void LoadHtmlAsXml(
	string htmlUrl,
	XmlTextWriter writer
)
Visual Basic
Public Sub LoadHtmlAsXml ( _
	htmlUrl As String, _
	writer As XmlTextWriter _
)
Visual C++
public:
void LoadHtmlAsXml(
	String^ htmlUrl, 
	XmlTextWriter^ writer
)

Parameters

htmlUrl
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp".
writer
Type: System.Xml..::..XmlTextWriter
The XmlTextWriter to which you want to save to.

See Also