Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7093537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T08:27:06+00:00 2026-05-28T08:27:06+00:00

HI can someone please explain how to access the ‘item’ portion of this xml

  • 0

HI can someone please explain how to access the ‘item’ portion of this xml feed. Here is the VAR_DUMP of the file. Im using simplexml_load_string to pull the feed from google but how to I get access to the ‘item’ contents

    object(SimpleXMLElement)[1]
  public '@attributes' => 
    array
      'version' => string '2.0' (length=3)
  public 'channel' => 
    object(SimpleXMLElement)[2]
      public 'generator' => string 'NFE/1.0' (length=7)
      public 'title' => string 'running barefoot - Google News' (length=30)
      public 'link' => string 'http://news.google.com/news?pz=1&ned=us&hl=en&q=running+barefoot' (length=64)
      public 'language' => string 'en' (length=2)
      public 'webMaster' => string 'news-feedback@google.com' (length=24)
      public 'copyright' => string '©2012 Google' (length=17)
      public 'pubDate' => string 'Sun, 22 Jan 2012 04:38:34 GMT' (length=29)
      public 'lastBuildDate' => string 'Sun, 22 Jan 2012 04:38:34 GMT' (length=29)
      public 'image' => 
        object(SimpleXMLElement)[3]
          public 'title' => string 'running barefoot - Google News' (length=30)
          public 'url' => string 'http://www.gstatic.com/news/img/logo/en_us/news.gif' (length=51)
          public 'link' => string 'http://news.google.com/news?pz=1&ned=us&hl=en&q=running+barefoot' (length=64)
      public 'item' => 
        array
          0 => 
            object(SimpleXMLElement)[4]
              ...
          1 => 
            object(SimpleXMLElement)[5]
              ...
          2 => 
            object(SimpleXMLElement)[6]
              ...
          3 => 
            object(SimpleXMLElement)[7]
              ...
          4 => 
            object(SimpleXMLElement)[8]
              ...
          5 => 
            object(SimpleXMLElement)[9]
              ...
          6 => 
            object(SimpleXMLElement)[10]
              ...
          7 => 
            object(SimpleXMLElement)[11]
              ...
          8 => 
            object(SimpleXMLElement)[12]
              ...
          9 => 
            object(SimpleXMLElement)[13]
              ...
      public 'description' => string 'Google News' (length=11)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T08:27:07+00:00Added an answer on May 28, 2026 at 8:27 am

    It looks like you can access the ‘item’ member variable like so: $yourObject->channel->item

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to access a MySQL database using PHP. Can someone please explain
Can someone please explain to me how can I sign a CAB file? I'm
Can someone please explain me this SQL query. This shows me the popular stores,
Can someone please explain output 0 in case of first constructor without this ?
Can someone please explain to me what parsing XML means? And what does an
Can someone please explain why this program outputs 0x00000004? class AndAssignment { static void
Can someone please explain what this means? Enum<T extends Enum<T>> This seems like a
Can someone please explain me what's the difference between Swing and AWT? Are there
Can someone please explain why int (0.4 * 10.0) is 4 yet int ((2.4
Can someone please explain to me the difference between the AppSettings and ApplicationSettings sections

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.