Ejemplo n.º 1
0
 public void Download(string url, AddUrl addUrl)
 {
     this.addUrl=addUrl;
       string map = (new PageDownloader()).DownloadPage(url);
       if (map == string.Empty)
     return ;
       sitemap = new XmlFacade();
       sitemap.Set(map);
      // if (sitemap.curName.Equals("urlset",StringComparison.OrdinalIgnoreCase)
      //     || sitemap.curName.Equals("sitemapindex", StringComparison.OrdinalIgnoreCase))
     GetUrlList();
 }
Ejemplo n.º 2
0
        public ValidityParser(string url)
        {
            origUrl = url;
              if (url.StartsWith(ValidityCollector.httpString))
            url = url.Substring(ValidityCollector.httpString.Length);
              url = Options.Get("ValidatorSite") + url + Options.Get("ValidatorParms");
              string content = (new PageDownloader()).DownloadPage(url);
              if (content != string.Empty)
              {

            validity = new XmlFacade();
            validity.Set(content);
            Parse();
              }
        }
Ejemplo n.º 3
0
 public xmsgEnumerator(XmlFacade xmsg)
 {
     this.xmsg = xmsg;
 }