/// <summary>
        /// Creates a copy of the cursor position
        /// </summary>
        public XmlCursorPos Clone()
        {
            var clone = new XmlCursorPos();

            clone.SetPos(this.ActualNode, this.PosOnNode, this.PosInTextNode);
            return(clone);
        }
 /// <summary>
 ///  Checks if this position is equal to a second one
 /// </summary>
 public bool Equals(XmlCursorPos otherPos)
 {
     if (this.ActualNode != otherPos.ActualNode)
     {
         return(false);
     }
     if (this.PosOnNode != otherPos.PosOnNode)
     {
         return(false);
     }
     if (this.PosInTextNode != otherPos.PosInTextNode)
     {
         return(false);
     }
     return(true);
 }