SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question About Parsing My 1st Feed with SimpleXML

    I'm attempting to parse my first feed with simpleXML. The example I'm following is from the SitePoint XML Web Development Book by Thomas Myer, pages 212-214. Here are the links to my two code files.

    dcb.petebeck.us/pages/wireFrame_rss_headlines.xml
    dcb.petebeck.us/pages/wireFrame_RSS_parsers.php
    (add the http in front)

    When I execute the wireFrame_RSS_parsers.php file I receive the following error:

    Fatal error: Call to undefined function: simplexml_load_file() in /hsphere/local/home/toddastr/dcb.petebeck.us/pages/wireFrame_RSS_parsers.php on line 65
    I'm sure it must be a simple oversite on my part. I probably left something out that needs to be included. Could some kind sole please look at my code and give me a idea of what I'm doing wrong?

    Thank you,

    Todd S.

  2. #2
    SitePoint Enthusiast
    Join Date
    Mar 2009
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Possibly you are running PHP4. SimpleXML is PHP5.

  3. #3
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My ISP uses PHP Version 4.4.9. Is there a comparible function in this version?

    Thanks,

    ~Todd S.

  4. #4
    SitePoint Enthusiast
    Join Date
    Mar 2009
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try XML Parser.

  5. #5
    SitePoint Member
    Join Date
    Jun 2009
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for your help. I can figure it out from there. I just needed a little direction.

    Clear Skies,

    ~Todd


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •