(.*?)\<\/TXT\>/s", $xmldata, $newsTxt );
preg_match_all( "/\
(.*?)\<\/LINK\>/s", $xmldata, $newsUrl );
/* xml_parse_into_struct($xmlparser,$xmldata,$values,$noteIndexs);
xml_parser_free($xmlparser);
*/
$linklen = count($newsTxt[0]);
function getXmlLink($index,$url)
{
//print_r($newsUrl[0][$index]);
//echo str_replace("","",str_replace("
","",$url[$index]));
autoAddLink(str_replace("","",str_replace("
","",$url[$index])));
}
function getXmlText($index,$txt)
{
//echo $txt[$index];
echo mb_convert_encoding($txt[$index],"EUC","UTF-8");
}
function autoAddLink($inUrl)
{
if(stristr($inUrl,"content.asp?")==false && $inUrl != '#')
{
echo "content.asp?src=" . $inUrl . "&i=";
} else {
echo $inUrl;
}
}
?>