Sitemaps are very important for Search Engine Optimization (SEO).
Creating and maintaining an accurate Sitemap is important to proper indexing of your website pages. Simple rules: If you use the popular Wordpress platform of any similar software, there are plugins available to create for you the XML Sitemap. If your blogging platform does not support Sitemap creation or your site is something more than a typical blog, containing more sections.
Simple XML provides an easy way of getting an element's name, attributes and textual content if you know the XML document's structure or layout.
Simple XML turns an XML document into a data structure you can iterate through like a collection of arrays and objects.
Compared to DOM or the Expat parser, Simple XML takes a fewer lines of code to read text data from an element.
Sitemaps are an easy way for webmasters to inform search engines about pages on their sites that are available for crawling.
In its simplest form, a Sitemap is an XML file that lists URLs for a site along with additional metadata about each URL (when it was last updated, how often it usually changes, and how important it is, relative to other URLs in the site) so that search engines can more intelligently crawl the site.
section is repeated for each URL you want to include in the Sitemap file. A dynamic site (based on a database) has to create a dynamic Sitemap (generated and updated by a script, not manually).
After Sitemap creation, it must be submitted to search engines (see below).
Convert URL and dates according to Sitemap protocol specifications Line 33: Convert URLs using htmlspecialchars (see specification). In this example function Theoretically, you have to re-submit a Sitemap, when site content changes.
Either with manually submission or automated using scripts to "ping" the search engine.
But, once a Sitemap is submitted, search engines will regulary come back and reload the Sitemap looking for new URLs, whether you re-submit it or not.
Much more if Sitemap location is specified in file, as search engines first look at file.