klyn.io.xml.dom.DOMDocument.createElementNS
method

    public createElementNS(namespaceURI as String, qualifiedName as String) as Element throws DOMException:

Description

Creates a DOM parser element with an optional namespace.

Parameters

Parameter | Description
--- | ---
`namespaceURI` | Namespace URI, or null.
`qualifiedName` | Qualified XML element name.

Returns

New element owned by this document.

Throws

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

Example

    document = DOMDocument()
    root = document.createElementNS("urn:demo", "demo:root")