// 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))); }
/// <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))); }