protected boolean urlIsValid(String sitemapBaseUrl,String testUrl){
  boolean ret=false;
  if (sitemapBaseUrl != null && sitemapBaseUrl.length() <= testUrl.length()) {
    String u=testUrl.substring(0,sitemapBaseUrl.length());
    ret=sitemapBaseUrl.equals(u);
  }
  return ret;
}

protected boolean urlIsValid ( String sitemapBaseUrl , String testUrl ) { boolean ret = false ; if ( sitemapBaseUrl != null && sitemapBaseUrl . length ( ) <= testUrl . length ( ) ) { String u = testUrl . substring ( 0 , sitemapBaseUrl . length ( ) ) ; ret = sitemapBaseUrl . equals ( u ) ; } return ret ; }
see if testurl is under sitemapbaseurl . only urls under sitemapbaseurl are valid .
