internal string GetPrefix (string ns) { foreach (var nd in namespaces) if (nd.Namespace == ns) return nd.Prefix; return null; }