<?xml version="1.0" encoding="iso-8859-1"?>
<?php
include("rss10.inc");
$rss=new RSSWriter("http://www.example.org/", "Example Site",
"The best examples out there.",
array("dc:publisher" => "Example Publishing Inc.",
"dc:creator" => "E X Ample <hide@address.com>"));
$rss->setImage("http://www.example.org/images/rss.gif",
"Example Site: All the Examples Fit to Print");
$rss->addItem("http://www.example.org/page1.html",
"First Example Page");
$rss->addItem("http://www.example.org/page2.html",
"Second Example Page",
array("description" => "This is the second page of examples on this wonderful site",
"dc:subject" => "examples",
"dc:creator" => "Fred <hide@address.com>"));
//echo "hello";
//$rss->serialize();
$rss->preamble();
$rss->channelinfo();
$rss->image();
$rss->items();
$rss->postamble();
$xyz= $rss->getxml();
echo $xyz;
$File_path = "abc.xml";
$fp = fopen ($File_path, "w");
fwrite ( $fp, $xyz);
fclose ($fp);
?>