$xml = simplexml_load_file("URL");
$namespaces = $xml->getNamespaces(true);
i’m getting the namespaces for like this
Array
(
[aaa] => http://www.aaa.com/rss/module/save/1.0.2
[dc] => http://bbb.org/dc/elements/1.1/
)
i need the name for (aaa,dc)
How to get the namespaces name?
1 Answer