// -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        /// <summary>
        /// Gets the channel as an XElement (root element)
        /// </summary>
        /// <returns>XElement</returns>
        // -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        public XElement GetEl()
        {
            // create root element rss.  Note, it is NOT in a namespace.
            XElement parEl = xUtil.CreateEl(TAG_ROOT);



            // add the version attribute
            xUtil.AddAttr(parEl, ATTR_VERSION, RSS_VERSION);

            // add the default namespace attributes
            for (int i = 0; i < NamespaceAttributes.Count; i++)
            {
                // now add the media namespace attributes
                XAttribute attr = new XAttribute(XNamespace.Xmlns + NamespaceAttributes[i].Prefix, NamespaceAttributes[i].Url);
                xUtil.AddAttr(parEl, attr);
            }



            // get the document.
            XElement channelEl = channel.GetEl();

            parEl.Add(channelEl);


            // return
            return(parEl);
        }
        // -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        /// <summary>
        /// Gets the Channel object properties as an XElement
        /// </summary>
        /// <returns>XElement</returns>
        // -------------------------------------------------------------------------------
        // -------------------------------------------------------------------------------
        public override XElement GetEl()
        {
            XElement parEl = xUtil.CreateEl(TAG_PARENT);

            // now set the channel element
            SetEl(parEl);

            // now iterate the items
            for (int i = 0; i < items.Count; i++)
            {
                items[i].Parent = this;

                XElement itemEl = items[i].GetEl();

                parEl.Add(itemEl);
            }

            return(parEl);
        }