LoadHtmlAsXml Method (String, String, XsltArgumentList, XmlTextWriter)

Html Agility Pack

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

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

Syntax

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

Parameters

htmlUrl
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp".
xsltUrl
Type: System..::..String
The URL that specifies the XSLT stylesheet to load.
xsltArgs
Type: System.Xml.Xsl..::..XsltArgumentList
An XsltArgumentList containing the namespace-qualified arguments used as input to the transform.
writer
Type: System.Xml..::..XmlTextWriter
The XmlTextWriter to which you want to save.

See Also