private bool equals (Namespace n) { return Uri.Equals (n.Uri); }
public object ToDefaultXmlNamespace(Context cx, object uriValue) { return(Namespace.Parse(this, cx, uriValue)); }
/// <summary> /// XML.prototype.namespaceDeclarations ( ) /// /// The namespaceDeclarations method returns an Array of Namespace objects /// representing the namespace declarations associated with this XML /// object in the context of its parent. If the parent of this XML object /// is modified, the associated namespace declarations may change. /// /// See ECMA 13.4.4.24 /// </summary> internal object[] NamespaceDeclarations() { ArrayList namespaceDeclarations = new ArrayList (); foreach (XmlAttribute attr in UnderlyingNode.Attributes) { if (attr.LocalName == "xmlns") { Namespace ns = new Namespace (lib, attr.Prefix, attr.InnerText); if (!namespaceDeclarations.Contains (ns)) namespaceDeclarations.Add (ns); } } return (object [])namespaceDeclarations.ToArray (); }
private bool equals(Namespace n) { return(Uri.Equals(n.Uri)); }