/ Published in: Other
Expand |
Embed | Plain Text
// XML解析 require_once'../lib/XML/Unserializer.php'; $xml_filename = "http://192.168.11.29/chopsticks/data/bloger_xml.php"; $xml = join("",file($xml_filename)); // xml_str にファイルを読み込み $Unserializer =& new XML_Unserializer(); $Unserializer->setOption('parseAttributes', TRUE); $status = $Unserializer->unserialize($xml); if (PEAR::isError($status)) { die($status->getMessage()); } print_r($Unserializer->getUnserializedData());
You need to login to post a comment.
