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 8668921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T18:20:03+00:00 2026-06-12T18:20:03+00:00

I have a rss feed which has items in following format <item> <title>How Are

  • 0

I have a rss feed which has items in following format

<item>
  <title>How Are World's Top Investors Positioning?</title>   
  <guid>123456789</guid>
  <metadata:id>3000121785</metadata:id> 
  <metadata:thumbnail>http://thumbnails.com/abc/xyz.jpg</metadata:thumbnail> 
  <metadata:smallThumbnail>http://thumbnails.com/abc/xyz_s.jpg</metadata:smallThumbnail> 
  <metadata:largeThumbnail>http://thumbnails.com/abc/xyz_l.jpg</metadata:largeThumbnail>   
  <metadata:formatLink>mpeg4_500000_Download|http://thumbnail.com/sample_L.mp4</metadata:formatLink> 
  <metadata:formatLink>mpeg4_200000_Download|http://thumbnail.com/sample__126K.mp4</metadata:formatLink> 
  <metadata:formatLink>mpeg4_600000_Download|http://thumbnail.com/sample__500K.mp4</metadata:formatLink>   
  </item>

Upon paring using simple xml

$data =  simplexml_load_string($response);
print_r($data);

The output of print_r looks like

[item] => Array
    ( 
        [0] => SimpleXMLElement Object
        (
            [title] => How Are World's Top Investors Positioning?    
            [guid] => 123456789
        )
    )

My question is why am i missing the metadata portion from the final result and how can i get it in an array?

  • 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-06-12T18:20:04+00:00Added an answer on June 12, 2026 at 6:20 pm

    You need to reference the metadata namespace.

    $metadata = $obj->children('metadata', true);
    print $metadata->thumbnail;
    

    The following may help you:

    • http://www.php.net/manual/en/simplexmlelement.children.php
    • http://www.php.net/manual/en/simplexmlelement.getdocnamespaces.php
    • http://blog.sherifmansour.com/?p=302
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a remote RSS feed which has to be transformed into Notes documents
I have an RSS feed which has an image and some text. I want
i have a mysql database from which i require an rss feed of its
I have an RSS feed and I want to integrate each item into it
I have a site that has an Rss feed, and this feed is consumed
Is it possible to extract items from an RSS feed, such as the following:
I have an RSS Feed class, which holds the feed url, name, etc. and
Many html page has an url link to the RSS feed. If you have
I have a RSS Feed in which i get date and news description, i
I have a UITableView which from an external RSS feed. When you select a

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.