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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:04:02+00:00 2026-05-30T17:04:02+00:00

$xml = simplexml_load_file($URL); foreach($xml->children() as $child) { foreach($child as $child) { $list[] = $child->getName();

  • 0
  $xml = simplexml_load_file($URL);
            foreach($xml->children() as $child)
            {
                 foreach($child as $child)
                 {
                     $list[] = $child->getName();
                 }
            } 

<channel>
        <title></title>
        <link></link>
        <description></description>
        <item>
            <title></title>
            <link></link>
            <description></description>
            <pubDate></pubDate>
            <guid isPermaLink="false"></guid>
            <dc:date></dc:date>
            <dc:maxQuantity></dc:maxQuantity>
        </item>     
    <channel> 

i got the answer like this
title,
link,
description,
pubDate,
guid

i’m not getting the

dc:date,
dc:maxQuantity.,

how to get the this type of elements?please any one help me.

  • 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-30T17:04:04+00:00Added an answer on May 30, 2026 at 5:04 pm

    You don’t give any namespaces for the dc: elements but it is probably very similar to
    what is described here

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

Sidebar

Related Questions

Simple question for the one who knows the answer... $xml = simplexml_load_file(http://url/path/file.xml); This url
$q = $_GET['q']; // Load and parse the XML document $rss = simplexml_load_file('http://search.twitter.com/search.atom?lang=en&q=$q&rpp=100&page=1'); This
The file can be seen on the following URL: # The above XML file
I want show weather information from xml to this URL: http://www.google.com/ig/api?weather=roma&hl=it using this script:
I have an XML document that will either return a URL or an error
I'm trying to display the biggest image url returned from an xml result. So
THIS WORKS: 1 $number = 2; 2 $allofit = simplexml_load_file(thexmlfile.xml); 3 $thebook = $allofit
I'm having trouble getting the XML from a file using the simplexml_load_file function. I
I have a script that loops through many url based XML files to compare
I've got the following PHP code: $file = 'http://api.themoviedb.org/2.1/Movie.getInfo/en/xml/937a7e45f8f9e50cdb80e21fa50abc39/6479'; if(!$xml = simplexml_load_file($file)) { exit('Failed

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.