klyn.io.xml.dom.DOMDocument.createElement
method

    public createElement(tagName as String) as Element throws DOMException:

Description

Creates a DOM parser element without a namespace.

Parameters

Parameter | Description
--- | ---
`tagName` | Qualified XML element name.

Returns

New element owned by this document.

Throws

- DOMException if the tag name is not a valid XML name.

Example

    document = DOMDocument()
    root = document.createElement("root")