Example #1
0
        public void Add(string s)
        {
            IComposedList <SitemapEntity> o;

            if (s.Contains(Constants.LT + Constants.SITEMAPINDEX))
            {
                o = Parser.ParseSitemapIndex(s);
                if (o != null)
                {
                    SitemapIndexes.Add(o as SitemapIndex);
                }
            }
            else if (s.Contains(Constants.LT + Constants.URLSET))
            {
                o = Parser.ParseUrlset(s);
                if (o != null)
                {
                    Urlsets.Add(o as Urlset);
                }
            }
        }
Example #2
0
 public void Add(SitemapIndex o) => SitemapIndexes.Add(o);