public string GetNamespace (string prefix) { foreach (var nsd in source) if (nsd.Prefix == prefix) return nsd.Namespace; return null; }