Detailed Description

Namespaces allow multiple XML elements using the same tag name to be present in a single document. https://www.w3.org/TR/2006/REC-xml-names-20060816/

Static Public Member Functions

static MLNamespace GetByMime (string type)
 Gets a namespace by its mime type. Null if not found. More...
 
static MLNamespace Get (string name, string prefix, string mime)
 Gets or creates a namespace. More...
 
static MLNamespace Get (string name)
 Gets a namespace by its name (usually a URL). More...
 
static MLNamespace GetPrefix (string name)
 Gets a namespace by prefix. More...
 

Static Public Attributes

static Dictionary< string,
MLNamespace
All =new Dictionary<string,MLNamespace>()
 The available namespaces. Maps their unique name (typically a URI) to the NS instance. More...
 
static Dictionary< string,
MLNamespace
Prefixes =new Dictionary<string,MLNamespace>()
 The available namespaces. Maps prefixes (e.g. 'svg') to the NS instance. This technically shouldn't be global, however, prefixes should always be the same. More...
 

Member Function Documentation

static MLNamespace Dom.MLNamespaces.Get ( string  name,
string  prefix,
string  mime 
)
inlinestatic

Gets or creates a namespace.

static MLNamespace Dom.MLNamespaces.Get ( string  name)
inlinestatic

Gets a namespace by its name (usually a URL).

static MLNamespace Dom.MLNamespaces.GetByMime ( string  type)
inlinestatic

Gets a namespace by its mime type. Null if not found.

static MLNamespace Dom.MLNamespaces.GetPrefix ( string  name)
inlinestatic

Gets a namespace by prefix.

Member Data Documentation

Dictionary<string,MLNamespace> Dom.MLNamespaces.All =new Dictionary<string,MLNamespace>()
static

The available namespaces. Maps their unique name (typically a URI) to the NS instance.

Dictionary<string,MLNamespace> Dom.MLNamespaces.Prefixes =new Dictionary<string,MLNamespace>()
static

The available namespaces. Maps prefixes (e.g. 'svg') to the NS instance. This technically shouldn't be global, however, prefixes should always be the same.