IterableNamespaceContext

Namespace context that allows iterating over the namespaces.

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

Create a copy of the namespace context that will not change externally.

Link copied to clipboard
expect abstract fun getNamespaceURI(prefix: String): String?

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

Link copied to clipboard
expect abstract 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
expect abstract fun getPrefixes(namespaceURI: String): Iterator<String>

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

Link copied to clipboard
abstract operator override fun iterator(): Iterator<Namespace>

Retrieve an iterator returning all the known namespaces in this context.

Link copied to clipboard

Create a new context that combines both