Document.CreateElement

Document.CreateElement method

Creates an element of the type specified. Note that the instance returned implements the Element interface, so attributes can be specified directly on the returned object.

public Element CreateElement(string localName)
ParameterTypeDescription
localNameStringName of the tag.

Return Value

The Element.

See Also