CreateElement Method

Html Agility Pack

Collapse imageExpand ImageCopy imageCopyHover image
Creates an HTML element node with the specified name.

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

Syntax

C#
public HtmlNode CreateElement(
	string name
)
Visual Basic
Public Function CreateElement ( _
	name As String _
) As HtmlNode
Visual C++
public:
HtmlNode^ CreateElement(
	String^ name
)

Parameters

name
Type: System..::..String
The qualified name of the element. May not be null.

Return Value

The new HTML node.

See Also