Hello, all,
Is there a way to dynamically set a date in XML?
Specifically for sitemap.xml, is there a way to use another file’s dateLastModified property to set a date for <lastmod>
in a sitemap XML file? Just curious.
V/r,
Hello, all,
Is there a way to dynamically set a date in XML?
Specifically for sitemap.xml, is there a way to use another file’s dateLastModified property to set a date for <lastmod>
in a sitemap XML file? Just curious.
V/r,
I should say so. I’m not sure the exact workflow you want, but you can create a script (Eg in PHP) that reads a list of URLs or crawls a site, finds the files, gets the lastmod date and writes your sitemap.xml file.
A while back I made a site crawler script that creates a sitemap, updating the lastmod times and adding new pages.
So I can’t really make a sitemap.xml file that uses some kind of XML variable; but instead will have to create sitemap.xml from scratch, every time something changes?
V/r,
I wouldn’t say you can’t, I’m not sure, that’s just the way I’ve done it. Since the process is automated, it is no great effort on my part to re-create the whole sitemap.
It may be different in your case.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.