/// <summary> /// Tries to get the supported envelope namespace based /// on the <see cref="QName"/> prefix /// </summary> /// <param name="ns">The not understood header namespace or null if not found</param> /// <returns>True if a match namespace is found for the QName prefix</returns> public bool TryGetNotUnderstoodNamespace(out XmlQualifiedName ns) { var idx = QName.IndexOf(':'); if (idx > 0) { var nsName = QName.Substring(0, idx); ns = Xmlns.ToArray().FirstOrDefault(e => e.Name == nsName); return(ns != null); } ns = null; return(false); }