"; $x=new merlinXML('a'); foreach($mn as $k){ $x->addProduct($k); } $x->getXML(); header("Location: cache/file.xml");