Example #1
0
        // Gets a specific attribute ANode for a given attribute name
        private ANode AttributeANode(string name)
        {
            QNm qnm = new QNm(name.Token());

            return(EnumerateANodes(ANode.attributes()).FirstOrDefault(n => n.qname().eq(qnm)));
        }
Example #2
0
 /// <summary>
 /// Removes all the attributes from this element. This can only be used on database nodes.
 /// If the node is invalid this does nothing.
 /// </summary>
 /// <exception cref="NotSupportedException">The node is not a database node.</exception>
 public void RemoveAllAttributes()
 {
     Check(true);
     ANode[] nodes = EnumerateANodes(ANode.attributes()).ToArray();
     Updates.Do(new Delete(null, Seq.get(nodes, nodes.Length)));
 }