Hi.I have send my file to google sitemap so many times and still get the error message for the URL priority.
would u plz check my file and let me know whats wrong with my code.
please help me...big thanks all of you
it's very urgent.
<CFSET URL.RequestTimeout = 9999999999>
<CFSETTING RequestTimeout = "#URL.RequestTimeout#">
<CFSCRIPT>
function urlCleaner (productName) {
productName = ReplaceNoCase(REReplaceNoCase (productName, "[#chr(34)#'& ()./]", "-", "all"), chr(10) & chr(13), '', 'all');
productName = ReplaceNoCase(ReplaceNoCase(productName, "--", "-", "all"), "--", "-", "all");
if (Len(Trim(productName)) AND NOT CompareNoCase(Mid(productName, Len(productName), 1), "-")) {
productName = Mid(productName, 1, Len(productName)-1);
}
return productName;
}
</CFSCRIPT>
<!---<CFSET xmlTimestamp = LSDateFormat(Now(), "yyyy-mm-dd") & "T" & LSTimeFormat(Now(), "HH:mm:ss") & "-08:00">--->
<CFSET xmlTimestamp = LSDateFormat(Now(), "yyyy-mm-dd")>
<CFSAVECONTENT variable="xmlDoc"><?xml version="1.0" encoding="UTF-8"?>
<sitemapindex xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
<sitemap>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod><CFOUTPUT>#xmlTimestamp#</CFOUTPUT></lastmod>
</sitemap>
</sitemapindex>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemapIndex.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<!--- PRODUCT TYPE --->
<CFQUERY name="getProductTypes" datasource="#datasource#">
SELECT '[ External links are visible to forum administrators only ]' + cat_level1_url + '.html' AS keywordLink
FROM tbl_cat_level1
ORDER BY cat_level1_name
</CFQUERY>
<!--- MANUFACTURER --->
<CFQUERY name="getManufacturers" datasource="#datasource#">
SELECT '[ External links are visible to forum administrators only ]' + cat_level2_url + '.html' AS keywordLink
FROM tbl_cat_level2
ORDER BY cat_level2_name
</CFQUERY>
<!--- PRODUCT - MANUFACTURER --->
<CFQUERY name="getProductManufacturers" datasource="#datasource#">
SELECT DISTINCT cat_level2_name + ' ' + cat_level1_name AS keywordValue, '[ External links are visible to forum administrators only ]' + cat_level1_url + '/' + cat_level2_url + '.html' AS keywordLink, cat_level1_name, cat_level2_name
FROM tbl_cat_relation a
INNER JOIN tbl_cat_level1 b ON a.cat_level1_id = b.cat_level1_id
INNER JOIN tbl_cat_level2 c ON a.cat_level2_id = c.cat_level2_id
ORDER BY cat_level2_name, cat_level1_name
</CFQUERY>
<!--- GET MODELS --->
<CFQUERY name="getModels" datasource="#datasource#">
SELECT top 15000 cat_level2_name + ' ' + IsNull(cat_level3_description + ' ', '') + cat_level3_name + ' ' + cat_level1_name AS keywordValue, '[ External links are visible to forum administrators only ]' + cat_level1_url + '/' + cat_level2_url + '_' + cat_level3_url + '.html' AS keywordLink, cat_level1_name, cat_level2_name, cat_level3_name, cat_level3_description
FROM tbl_configurator a
INNER JOIN tbl_cat_level1 b ON a.cat_level1_id = b.cat_level1_id
INNER JOIN tbl_cat_level2 c ON a.cat_level2_id = c.cat_level2_id
INNER JOIN tbl_cat_level3 d ON a.cat_level3_id = d.cat_level3_id
ORDER BY cat_level2_name, cat_level3_description, cat_level3_name, cat_level1_name
</CFQUERY>
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<url>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>1.00</priority>
</url>
<url>
<loc>[ External links are visible to forum administrators only ]</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.98</priority>
</url>
<CFLOOP query="getProductTypes"><url>
<loc>#getProductTypes.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.97</priority>
</url>
</CFLOOP>
<CFLOOP query="getManufacturers"><url>
<loc>#getManufacturers.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.96</priority>
</url>
</CFLOOP>
<CFLOOP query="getProductManufacturers"><url>
<loc>#getProductManufacturers.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.95</priority>
</url>
</CFLOOP>
<CFLOOP query="getModels"><url>
<loc>#getModels.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.94</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap1.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<!--- PRODUCTS --->
<CFQUERY name="getProducts" datasource="#datasource#" timeout="9999999">
SELECT DISTINCT cat_level2_name + ' ' + IsNull(cat_level3_description + ' ', '') + cat_level3_name + ' ' + e.product_name + ' ' + e.product_code + cat_level1_name AS keywordValue, '[ External links are visible to forum administrators only ]' + cat_level1_url + '/' + cat_level2_url + '_' + cat_level3_url + '_' + e.product_code_url + '_' + dbo.WebStringStripper(e.product_name) + '.html' AS keywordLink, cat_level1_name, cat_level2_name, cat_level3_name, cat_level3_description
FROM tbl_configurator a
INNER JOIN tbl_cat_level1 b ON a.cat_level1_id = b.cat_level1_id
INNER JOIN tbl_cat_level2 c ON a.cat_level2_id = c.cat_level2_id
INNER JOIN tbl_cat_level3 d ON a.cat_level3_id = d.cat_level3_id
INNER JOIN tbl_product e ON a.product_id = e.product_id
ORDER BY cat_level2_name, cat_level3_description, cat_level3_name, cat_level1_name
</CFQUERY>
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="1" to="15000" index="x"><url>
<loc>#getProducts.keywordLink
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.89</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap2.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="15001" to="30000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.88</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap3.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="30001" to="45000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.87</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap4.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="45001" to="60000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.86</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap5.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="60001" to="75000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.85</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap6.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="75001" to="90000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.84</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap7.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="90001" to="105000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.83</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap8.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="105001" to="120000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.82</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap9.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="120001" to="135000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.81</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap10.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="135001" to="150000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.80</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap11.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="150001" to="175000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.79</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap12.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">
<CFSAVECONTENT variable="xmlDoc"><CFOUTPUT><?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="[ External links are visible to forum administrators only ]"
xmlns:xsi="[ External links are visible to forum administrators only ]"
xsi:schemaLocation="[ External links are visible to forum administrators only ]
[ External links are visible to forum administrators only ]">
<CFLOOP from="175001" to="190000" index="x"><url>
<loc>#getProducts.keywordLink#</loc>
<lastmod>#xmlTimestamp#</lastmod>
<changefreq>monthly</changefreq>
<priority>0.78</priority>
</url>
</CFLOOP>
</urlset></CFOUTPUT>
</CFSAVECONTENT>
<cffile action="write" file="E:\www\NeedBattery\sitemap13.xml" output = "#xmlDoc#" nameconflict="OVERWRITE">