DomAttribute->name

(no version information, might be only in CVS)

DomAttribute->name --  Returns name of attribute

Description

string DomAttribute->name ( void )

This function returns the name of the attribute.

See also domattribute_value().

t;<book><title>blah</title></book></books>');
if (
$sxe === false) {
    echo
'Error while parsing the document';
    exit;
}

$dom_sxe = dom_import_simplexml($sxe);
if (!
$dom_sxe) {
    echo
'Error while converting XML';
    exit;
}

$dom = new domdocument("1.0");
$dom_sxe = $dom->importnode($dom_sxe, true);
$dom_sxe = $dom->appendchild($dom_sxe);

echo
$dom->savexml();
?>