1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

CMS with XML?

Discussion in 'PHP' started by roguegiants, Jun 21, 2008.

  1. roguegiants

    roguegiants New Member

    Jun 21, 2008
    Likes Received:
    Trophy Points:
    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.

Share This Page