CMS with XML?
Alright, so I've developed a simple PHP CMS that loads external HTML files into an index.php document based on a variable $activepage. So in links they are a href="index.php?activepage=about" for example. But a recent project has asked me to parse an XML document using PHP.
My question is this. How do I parse only the node of the selected page and display it? For example, the "about" page is clicked, setting the $activepage variable to "about". How do I then draw the "about" node from the data.xml document? I've been trying various stuff, but to no avail, and unfortunately the project is due back to the client within a few hours. Any help would be GREATLY appreciated. I'm more of a designer than a developer at this point in time :), but hopefully that can change. Thanks for your time.
|All times are GMT +5.5. The time now is 09:39.|