Example #1
0
        internal static IOpmlBody ConvertToIOpmlBody(XmlReader input)
        {
            OpmlBody body = new OpmlBody();

            input.ReadToDescendant("body");
            ReadOutlines(input, body);
            input.Close();
            return(body);
        }
Example #2
0
        /// <summary>
        /// Gets the body.
        /// </summary>
        /// <param name="root">The root.</param>
        /// <param name="ns">The namespace.</param>
        public static OpmlBody GetBody(XContainer root, XNamespace ns)
        {
            if (root == null)
            {
                return(null);
            }

            var data = new OpmlBody
            {
                Outlines = GetOutlines(root, ns)
            };

            return(data);
        }
Example #3
0
        static OpmlBody GetBody(XContainer root)
        {
            if (root == null)
            {
                return(null);
            }

            var data = new OpmlBody
            {
                Outlines = GetOutlines(root)
            };

            return(data);
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="OpmlFeed"/> class.
 /// </summary>
 public OpmlFeed()
 {
     Head = new OpmlHead();
     Body = new OpmlBody();
 }
Example #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="OpmlFeed"/> class.
 /// </summary>
 public OpmlFeed()
 {
     Head = new OpmlHead();
     Body = new OpmlBody();
 }