PhoenixmlDb.Core

NamespaceRegistry

The single source of truth mapping well-known values to their URIs and conventional prefixes.

#NamespaceRegistry

Namespace: PhoenixmlDb.Core

The single source of truth mapping well-known

values to their URIs and conventional prefixes.

Namespace URIs are permanent identities. Once one has shipped in a stored document it can never change — not even its scheme, which is part of the identity. Do not edit an existing entry; add a new id instead.

#Properties

Name Description
WellKnown Every namespace this registry knows.

#Methods

#GetConventionalPrefix(PhoenixmlDb.Core.NamespaceId)

The conventional prefix for a well-known namespace, or

if not well-known.

#GetUri(PhoenixmlDb.Core.NamespaceId)

The permanent URI for a well-known namespace, or

if not well-known.

#TryGetId(String,PhoenixmlDb.Core.NamespaceId@)

Resolves a URI to its well-known

, if any.

Parameters:

  • uri — The namespace URI to look up.

  • id — The matching well-known id, if found.

Returns: true if uri is a well-known namespace; otherwise false.