CMS with XML?

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

  1. roguegiants

    roguegiants New Member

    Joined:
    Jun 21, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice