<?
header("Content-Type: text/html; charset=UTF-8");
$xml = <<< XML
<S001 username="wang" password="123"/>
XML;
$sxe = new SimpleXMLElement($xml);echo $sxe->getName() . "\n";
?>
我想得到S001里的所有key和value,应该用哪个函数?