SimpleXMLElement->getName
Gets the name of the XML element
&reftitle.description;
SimpleXMLElement
stringgetName
Gets the name of the XML element.
&reftitle.returnvalues;
The getName method returns as a string the
name of the XML tag referenced by the SimpleXMLElement object.
&reftitle.examples;
Get XML element names
getName() . "\n";
foreach ($sxe->children() as $child)
{
echo $child->getName() . "\n";
}
?>
]]>