GsgXml - An XML generator for Google Sitemaps
GsgXml is an open-source class written in PHP used to easily create
XML files compatible with the
Google Sitemaps service.
Download
Usage Guide
The class is very simple to use. View the PHP source below for a basic guide:
Latest News
Features
- Allows a base domain to be specified, which does 2 things:
- Gives the ability to add URLs that don't contain the domain
- Ensures that URL with the full domain match the base URL as this is a requirement of Google Sitemaps
- Wide range of output options, which allows for easy output:
- Can optionally compress the data with GZIP
- Can output HTTP headers accordingly
- Or just output the raw compressed or uncompressed data so you can pipe to a filesystem file
-
Easily customizable for future changes to Google Sitemaps specification
Roadmap
Here are future features to be included in GsgXml:
- Support for 'sitemapindex' - This is an additional XML schema for grouping multiple sitemap files
- Porting to other languages - It would be nice to port this class to other languages, such as Perl, Python and ColdFusion.
- Config file for auto-generation - This has two parts:
- Store a list of URLs in a text file which would be parsed by the class to generate the sitemap
- A config file to crawls all files in specified dir(s), as well as options for ignoring or including only certain filytypes
Perhaps you'd like to suggest a feature? Email us using the below address.
Documentation
The class is very basic to use - you're best of looking at the same usage guide
and reading the API documentation in the PHP class.
Contact Us
All questions/suggestions/comments can be directed to
gsg@zervaas.com.au.
© 2005 Zervaas Enterprises. All rights reserved.
This project is in no way affiliated with Google. Other projects:
AjaxAC,
ZervCMS,
phpRiot