public virtual IEnumerator GetEnumerator() { if ( nodes == null ) { return XmlDocument.EmptyEnumerator; } else { return Nodes.GetEnumerator(); } }