GatheringNamespaceContext

Class that gathers namespace queries and records them in the given map (prefix, namespace uri).

Constructors

Link copied to clipboard
constructor(parentContext: NamespaceContext?, resultMap: MutableMap<String, String>)

Functions

Link copied to clipboard

Convert a prefixed element name (CNAME) to a qname. If there is no prefix, the default prefix is used.

Link copied to clipboard
open override fun getNamespaceURI(prefix: String): String?

Return the namespace uri for a given prefix. Note that some prefixes are predefined.

Link copied to clipboard
open override fun getPrefix(namespaceURI: String): String?

Return a prefix for a given namespace uri. If there are multiple candidates the returned prefix is implementation defined.

Link copied to clipboard
open override fun getPrefixes(namespaceURI: String): Iterator<String>

Return an iterator that provides all prefixes for the given namespace.