Stay organized with collections
Save and categorize content based on your preferences.
September 16, 2005
Do you have several small Sitemaps that you would like to combine into one larger one? With
version 1.3 of the Sitemap Generator,
which we told you about
yesterday, you can do just
that.
This version includes a new input method: sitemap, which lets you point to existing Sitemaps that
you created with the
Sitemap Generator. The Sitemap
Generator will create a single Sitemap that includes the URLs contained in each Sitemap you list.
To use this input method, locate the sitemap section of the config file and modify it as needed.
You should include one entry for each Sitemap you want to include. Each entry must
contain the path parameter, whose value should be the path and filename of an existing Sitemap
file.
The example_config.xml file included with the Sitemap Generator download includes a
sample section:
<-- ** MODIFY or DELETE **
"sitemap" nodes tell the script to scan other Sitemap files. This can
be useful to aggregate the results of multiple runs of this script into
a single Sitemap.
Required attributes: path - path to the file -->
This section gives one example. You should replace this example and include an entry for each
Sitemap you want to include. Ensure that the path value is the complete path and filename on your
web server. You can list gzipped Sitemaps as well, as long as they have a .gz
extension. Rather than list each Sitemap, you can use wildcards. For instance, the following entry
would include any Sitemaps that begin with the word "sitemap" and have
an .xml file extension:
The Sitemap Generator extracts all URLs and the optional data listed for each URL for every
Sitemap you list and creates one Sitemap with this information. At this time, we can't guarantee
that this method will work for Sitemaps created with tools other than the Sitemap Generator.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],[],[[["Sitemap Generator version 1.3 allows combining multiple smaller Sitemaps into a single, larger Sitemap file."],["The new \"sitemap\" input method in the configuration file enables you to specify the paths to existing Sitemap files for merging."],["You can use wildcards in the configuration file to include multiple Sitemaps matching a specific pattern, simplifying the process of combining numerous files."],["The Sitemap Generator extracts all URLs and associated data from the specified Sitemap files to create the consolidated Sitemap."]]],["The blog post details how to combine multiple small Sitemaps into one using version 1.3 of the Sitemap Generator. This version introduces a new \"sitemap\" input method in the config file. Users can specify `\u003csitemap\u003e` entries, each with a \"path\" parameter indicating the location of an existing Sitemap file. Wildcards are also supported for including multiple Sitemaps. The generator then compiles the URLs from these files into a single, unified Sitemap. Gzipped files are also supported.\n"]]