<? /************************************************ ** use XML in PHP5 ** reference site: ** http://cn.php.net/manual/zh/ref.dom.php ** the follow codes need PHP5 support *************************************************/
//首先要创建一个DOMDocument对象 $dom = new DomDocument(); //然后载入XML文件 $dom -> load("test.xml");