$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.
You don’t give any namespaces for the dc: elements but it is probably very similar to
what is described here