Ejemplo n.º 1
0
 private bool equals (Namespace n)
 {
     return Uri.Equals (n.Uri);
 }
Ejemplo n.º 2
0
 public object ToDefaultXmlNamespace(Context cx, object uriValue)
 {
     return(Namespace.Parse(this, cx, uriValue));
 }
Ejemplo n.º 3
0
 /// <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 ();
 }
Ejemplo n.º 4
0
 private bool equals(Namespace n)
 {
     return(Uri.Equals(n.Uri));
 }