how to remove html div tag from this view.
working on XML feed,
here my Controller Code.
$model=new activity('search');
$model->unsetAttributes(); // clear any default values
if(isset($_GET['activity']))
$model->attributes=$_GET['activity'];
$this->layout = "xml";
$this->render('xml',array(
'model'=>$model, // send it to the view for rendering
));
view code:
<?php header("Content-type: text/xml"); ?>
<?php echo ‘<?xml version=“1.0” encoding=“UTF-8”?>’?>
<activities>
<?php
$this->widget(‘zii.widgets.CListView’, array(
'dataProvider'=>$model->search(),
'htmlOptions'=>'',
'itemView'=>'xml_view',
)); ?>
</activities>
[b]
xml_view Code[/b]
echo "<activity>";
echo "<category><![CDATA[". CHtml::encode($data->category)."]]></category>\n";
echo "<description><![CDATA[".CHtml::encode($data->description)."]]></description>\n";
echo "<date_time><![CDATA[".CHtml::encode($data->date_time)."]]></date_time>\n";
echo "</activity>";
?>
Output
<?xml version="1.0" encoding="UTF-8"?>
<activities>
<div id="yw0" class="list-view">
<div class="summary">Displaying 1-1 of 1 result(s).</div>
<div class="items">
<activity><category><![CDATA[2]]></category>
<description><![CDATA[asdfasf]]></description>
<date_time><![CDATA[0000-00-00 00:00:00]]></date_time>
</activity>
</div>
<div class="keys" style="display:none" title="/yii/app/index.php?r=activity%2Ffeed&amp;activity%5Bid%5D=&amp;activity%5Bcategory%5D=2&amp;activity%5Bdescription%5D=&amp;activity%5Blatitude%5D=&amp;activity%5Blongitude%5D=&amp;activity%5Bdate_time%5D=&amp;ajax=activity-grid"><span>4</span></div>
</div>
</activities>
now i want to remove extra div tag from my XML any solution ??
thanks in advance