NamespaceContextImpl (NamespaceContextImpl - JavaScript)

Creates a namespace context.

Defined in

NamespaceContextImpl

Syntax

NamespaceContextImpl()

Examples

This button creates a namespace context if it does not yet exist then adds a namespace. If the namespace context already exists, the button adds another namespace. The namespace context is a global object so other code can use it.
if(sessionScope.ns == null) {
	sessionScope.ns = new NamespaceContextImpl();
}
sessionScope.ns.addNamespace(
	requestScope.prefix, requestScope.uri);