Hello all,
I am endeavouring to use an xml document as an application configuration file to store constants/globals, eg COOKIE_TIMEOUT etc etc and general properties like absoute path to welcome pages etc.
I am using this methodology becuase I am from a java background and am used to using things like the web.xml file in j2ee architecture. However I have never been faced with the need to parse the xml document myself, thats already been taken care.
Basically I have defined all of my roots and nodes etc, however I now need to be able to parse these into application wide variables.
Going from;
<web-app>
<constant>
<param-name>COOKIE_TIMEOUT</param-name>
<param-value>606024*7</param-value>
</constant>
</web-app>
to;
define(COOKIE_TIMEOUT,(606024*7);
Any help would be great.