";
echo $xml;
echo "";
foreach ($xml->item as $oitemVal) {
$text = " \"".$oitemVal->title->content."\"\t";
$text .= " \"".$oitemVal->eng_title->content."\"\t";
$text .= $oitemVal->year->content."\t";
$text .= " \"".$oitemVal->director->content."\"\t";
foreach ($oitemVal->actor->content as $oContentVal) {
$text .= " \"$oContentVal\"";
} $oContentVal="";
$text .= "\t";
$text .= $oitemVal->more_actor->link."\t";
$text .= $oitemVal->nation->content."\t";
foreach ($oitemVal->genre->content as $oContentVal) {
$text .= " \"$oContentVal\"";
} $oContentVal="";
$text .= "\t";
$text .= $oitemVal->open_info[0]->content."\t";
$text .= "\n";
echo "$text";
fwrite($myfile, $text);
}
$text='';
}
fclose($myfile);
?>