Function saveSitemap
Saves the sitemap to the file with the given filename. If no filename is given, it outputs the sitemap.
Package: Module\ContentSitemapXml
Copyright: four for business AG
Author: simon.sprankel@4fb.de
Author: marcus.gnass@4fb.de
See: http://stackoverflow.com/questions/1191167/format-output-of-simplexml-asxml
Todo: How can I save this properly formatted?
Located at data/examples/data/modules/content_sitemap_xml/php/content_sitemap_xml_output.php
Copyright: four for business AG
Author: simon.sprankel@4fb.de
Author: marcus.gnass@4fb.de
See: http://stackoverflow.com/questions/1191167/format-output-of-simplexml-asxml
Todo: How can I save this properly formatted?
Located at data/examples/data/modules/content_sitemap_xml/php/content_sitemap_xml_output.php
SimpleXMLElement |
$sitemap |
the XML structure of the sitemap |
string |
$filename = '' |
[optional] the filename to which the sitemap should be written |