protected XmlElement AppendElement(XmlElement node, string tag, string attribute) { if (node.SelectSingleNode(string.Format(".//{0}[@{1}]", tag, attribute), this.nsMgr) != null) { return null; } return (XmlElement) node.AppendChild(base.CreateElement(tag)); }