Treehouse: Grow your CSS skills. Land your dream job.

Single XML node and PHP

  • # June 29, 2010 at 3:33 pm

    I am trying to put xml data on an html page via php. I’ve done this before but now I only have one xml node. This is my XML file:


    This is my about page text.

    And this is the PHP I am using that doesn’t work. It returns no errors, but the text isnt in the textbox like it should.

    < ?php $doc = new DOMDocument(); $doc->load( TEMPLATEPATH . ‘/flash/xml/about.xml’ );

    $aboutxml = $doc->getElementsByTagName( “about” );
    $about = $aboutxml->nodeValue;
    echo ”

    About Page Editor



    Any ideas? Thanks.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.