/// <summary>Loads up the foreigners set.</summary> private void LoadForeigners() { Foreigners = new Dictionary <string, MLNamespace>(); if (ForeignNames == null) { return; } string[] tags = ForeignNames.Split(','); for (int i = 0; i < tags.Length; i++) { // FQ with it's xmlns, e.g. 'svg:svg' or 'mml:math' string fullyQualifiedTag = tags[i]; string[] tagParts = fullyQualifiedTag.Split(':'); // Get the namespace from a (global only) prefix: MLNamespace ns = MLNamespaces.GetPrefix(tagParts[0]); // Add to set: Foreigners[tagParts[1]] = ns; } }
public AttributeNode(Node owner, string name, string val, string ns) { UnprefixedName = name; Namespace = MLNamespaces.GetPrefix(ns); ownerElement = owner as Element; specified = (val != null); value = val; }