LoadHtmlAsXml Method (String, String, XsltArgumentList, XmlTextWriter, String)

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,
	string xmlPath
)
Visual Basic
Public Sub LoadHtmlAsXml ( _
	htmlUrl As String, _
	xsltUrl As String, _
	xsltArgs As XsltArgumentList, _
	writer As XmlTextWriter, _
	xmlPath As String _
)
Visual C++
public:
void LoadHtmlAsXml(
	String^ htmlUrl, 
	String^ xsltUrl, 
	XsltArgumentList^ xsltArgs, 
	XmlTextWriter^ writer, 
	String^ xmlPath
)

Parameters

htmlUrl
Type: System..::..String
The requested URL, such as "http://Myserver/Mypath/Myfile.asp". May not be null.
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.
xmlPath
Type: System..::..String
A file path where the temporary XML before transformation will be saved. Mostly used for debugging purposes.

See Also