its really simple, check out http://php.net/manual/en/simplexml.examples-basic.php
i've used the same method lot of times, heres a little snippet from one of my active php projects.
$file = "http://the_address_of_the_xml_file.com";
if(!$xml = simplexml_load_file($file)) {
return 0;
} else { //open
$status = $xml->attributes()->statu
if($status=='ok') {//open
$bio = $xml->artist->bio;
//closed
for ($i = 0; $i < 1; $i++) {
and how about file_get_content ?
$post_data = array('xml' => $xml_str);
$stream_options = array(
'http' => array(
'method' => 'POST',
'header' => 'Content-type: application/x-www-form-urlencoded' . "
",
'content' => http_build_query($post_data)));
$context = stream_context_create($stream_options);
$response = file_get_contents($url, null, $context);
ha im not on top form today, in bed really unwell ;)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…