// -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        /// <summary>
        /// This gets the parent RssItem object
        /// </summary>
        /// <param name="obj">current object to start at</param>
        /// <returns>RssItem</returns>
        // -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        public RssItem GetParentItem(IRssParentReference obj)
        {
            RssItem rt = null;

            if (obj.GetType() == typeof(RssItem))
            {
                rt = (RssItem) obj;
            }
            else
            {
                if (obj.Parent != null)
                {
                    if (obj.Parent is IRssParentReference)
                    {
                        rt = GetParentItem((IRssParentReference)obj.Parent);
                    }
                }
            }

            return rt;
        }
        // -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        /// <summary>
        /// This gets the parent RssItem object
        /// </summary>
        /// <param name="obj">current object to start at</param>
        /// <returns>RssItem</returns>
        // -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        public RssChannel GetParentChannel(IRssParentReference obj)
        {
            RssChannel rt = null;

            if (obj.GetType() == typeof(RssChannel))
            {
                rt = (RssChannel)obj;
            }
            else
            {
                if (obj.Parent != null)
                {
                    if (obj.Parent is IRssParentReference)
                    {
                        rt = GetParentChannel((IRssParentReference)obj.Parent);
                    }
                }
            }

            return rt;
        }