20,359
社区成员
发帖
与我相关
我的任务
分享
<?php
$doc = new DOMDocument();
$doc->load('xmlfile.xml');
$node_lists = $doc->getElementsByTagName('orguser');
foreach ($node_lists as $node) {
$useraccount = $node->getAttribute('useraccount');
$manageright = $node->getAttribute('manageright');
echo '<li>useraccount : ' , $useraccount;
echo '<li>manageright : ' , $manageright;
}
?>