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)
Parameter Type Description
localName String Name of the tag.

Return Value

The Element.

See Also