Ejemplo n.º 1
0
        /// <summary>Tests whether two nodes are the same by attribute comparison.</summary>
        public override bool isEqualNode(Node other)
        {
            if (other == this)
            {
                return(true);
            }
            AttributeNode t = other as AttributeNode;

            return(t != null && t.name == name && t.nodeValue == nodeValue);
        }
 /// <summary>Remove the named attribute. element[name] is generally better.</summary>
 public void removeAttributeNode(AttributeNode node)
 {
     removeAttribute(node.name);
 }
 /// <summary>Set the named attribute. element[name] is generally better.</summary>
 public void setAttributeNode(AttributeNode node)
 {
     setAttribute(node.name, node.value);
 }
 /// <summary>Does this element have the named attribute? element[name] is generally better.</summary>
 public bool hasAttributeNode(AttributeNode node)
 {
     return(hasAttribute(node.name));
 }
Ejemplo n.º 5
0
 /// <summary>Remove the named attribute. element[name] is generally better.</summary>
 public void removeAttributeNode(AttributeNode node)
 {
     this[node.name] = null;
 }
Ejemplo n.º 6
0
 /// <summary>Set the named attribute. element[name] is generally better.</summary>
 public void setAttributeNode(AttributeNode node)
 {
     this[node.name] = node.value;
 }
Ejemplo n.º 7
0
 /// <summary>Does this element have the named attribute? element[name] is generally better.</summary>
 public bool hasAttributeNode(AttributeNode node)
 {
     return(this[node.name] != null);
 }