i have a text file that is csv, it goes title,url,description
Im trying to break it apart and loop it to make a xml
<?xml version="1.0" ?>
<rss version="2.0">
<channel>
<title>test</title>
<link>http://www.test.com/</link>
<description>test</description>
<item>
<title>Title</title>
<link>url</link>
<description>descrip</description>
</item>
</channel>
</rss>
that is the code i have for the xml file, now i need help trying to loop the item part by taking and breaking the line by line down in the text file thank you