Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello friends,

In my Application i have used the rss feed and i have used the following code for it.
XML
<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="http://www.gatesfoundation.org/FileReturn.aspx?returntype=rss&feed=all"
                XPath="rss/channel/item [position()<=6]">
            
            <asp:DataList ID="DataList1" runat="server" DataSourceID="XmlDataSource1" OnDataBinding="DataList1_DataBinding"
                OnItemDataBound="DataList1_ItemDataBound">
                <itemtemplate>
                    <div class="news-events">
                        
                        <table width="100%">
                            <tr>
                                
                                <td>
                                    <div class="news-content">
                                        <h5>
                                           
                                            <asp:HyperLink ID="hypTitle" runat="server" Width="300px" Text='<%# XPath("title") %>'
                                                Target="_self" NavigateUrl='<%#XPath("link")%>'>
                                        </h5>
                                        <p>
                                        <asp:Label ID="Label1" runat="server" Text='<%# XPath("description") %>' Style="padding: 10px 10px 0px 25px;
                                            display: inline-block;">
                                    </p>
                                    </div>
                                    <br />
                                    <a class="read-more" href="<%#XPath(" link=")%>"></a>
                                    
                                </td>
                            </tr>
                        </table>
                        <br />
                    </div>
                </itemtemplate>

and i want to separate the from bellow is
XML
<description> <![CDATA[  <img src="http://www.gatesfoundation.org/foundationnotes/PublishingImages/thumb-foundation-notes-bill-gates.jpg" author="Bill Gates" /><br />Jeff Raikes Keynote : Everything I Know About Ending Homlessness, I learned at Microsoft.  </description>

1.<img src="http://www.gatesfoundation.org/foundationnotes/PublishingImages/thumb-foundation-notes-bill-gates.jpg" author="Bill Gates" />

2.Jeff Raikes Keynote : Everything I Know About Ending Homlessness, I learned at Microsoft.

how can we do that. please,please help me. and thanks in advance
Posted
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900