public virtual Node CloneNode(Node node) { Node cnode = (Node) node.Clone(); nodeList.Add(cnode); for (AttVal att = cnode.Attributes; att != null; att = att.Next) { if (att.Asp != null) nodeList.Add(att.Asp); if (att.Php != null) nodeList.Add(att.Php); } return cnode; }