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

- 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")