Location: PHPKode > projects > Rumba XML > data/setlist.php
<?php
$tempsetlist='';
$xml = simplexml_load_file($basepatch.'data.xml');
	$temp = $xml->xpath('/articles/page/@id|/articles/page/titl');
	$i=count($temp);
	$f_set=fopen ('data/listpages.txt', 'w+');
for ($x=0; $x<$i; $x++)
{
	if(isset($temp[$x]))
		{$tempsetlist.=$temp[$x].'|'.$temp[$x+1]."\r\n";}
	$x++;
}
fwrite($f_set, $tempsetlist);
fclose ($f_set);
?>
Return current item: Rumba XML