<?xml version="1.0" encoding="ISO-8859-1"?>
Year value is hard coded… Is there any way that we can get the current year, without hardcoding.
Suppose when year changes to 2011, then the value should be automatically taken as 2011.
The way is to have whatever you’re using to create the XML do it. If you’re using PHP to pull data and put it together, change that script to use the current year.
That would be something you handle in your program that is using this XML file, not in the XML file. If you want help with it, post in the appropriate language forum and provide the relevant details, such as what XML library you’re using.
Thanks… I am just calling xml file in a command and I do not want to hart code the value inside XML file.
Inside the daily.xml, there is a hard coded value.
What is this “content” command?