doc.createElementNS("http://www.sitemaps.org/schemas/sitemap/0.9",
"urlset");
//urlset.setAttribute("xmlns", "http://www.sitemaps.org/schemas/sitemap/0.9");
doc.appendChild(urlset);
WebSite webSite =
(WebSite) request.getAttribute(HitFilter.WEBSITE_ATTRIBUTE);
if (webSite != null) {
SiteMap siteMap = webSite.getSiteMap();
List pagesList = siteMap.getPagesList();
for (Iterator iter = pagesList.iterator(); iter.hasNext();) {
PageInfo pageInfo = (PageInfo) iter.next();
if (pageInfo.getPath().isRoot() &&
webSite.getConfiguration().isRedirectRoot() &&
HitFilter.getPreferredLanguage(request) != null) {
continue;
}
Element url = doc.createElement("url");