php create an rss feed (lets say for a poll website)
<p>How do i create my custom RSS feed generator with php ?</p>

<p>Hopefully i will like to avoid use of any libraries(if possible).</p>

<p>Lets say i have a poll website where users create polls.</p>

<p>lets say I want to record the events :
1)when people create a poll a function will get provoked containing the code ti write RSS to XML file.
etc etc events.</p>

<p>Lets i want to record 3 things:
1)username of the user who created the poll contained within a variable lets say <code>$username</code>.
2)The text of the poll lets contained in the variable <code>$text</code>
3)The options : an array containing all the options lets say the name of the array be $options</p>

<p>How do i write it maybe using the DOMelment function in php ?</p>

<p>thanks</p>
