Click here to Skip to main content
15,894,410 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hello everybody!
myname is K.Nguyen and i come from vietnam.
I am doing with RSS but itn't support html in it's item.
I want to same below:

XML
<rss version="2.0">
<channel>
<title>Muare.vn</title>
<link>http://muare.vn/</link>
<description>
Diễn đàn mua bán online, website thương mại điện tử sôi động và uy tín nhất Việt Nam với hơn 500 nghìn thành viên tham gia
</description>
<language>vi</language>
<lastBuildDate>Wed, 25 May 2011 09:24:59 GMT</lastBuildDate>
<generator>vBulletin</generator>
<ttl>60</ttl>
<image>
<url>http://muare.vn/images/misc/rss.jpg</url>
<title>Muare.vn</title>
<link>http://muare.vn/</link>
</image>
<item>
<title>
Bán chuột quang chính hãng acer(được tặng theo laptop acer) và 1 phần mềm CMC bản quyền trị giá 200k-tổng giá 200k
</title>
<link>http://muare.vn/f_87-LinhKien/3635212</link>
<pubDate>Wed, 25 May 2011 09:24:41 GMT</pubDate>
<description>
Mình mua laptop Acer được tặng 1 con chuột quang(laser light mouse- chuột quang laze) Acer chính hãng. Và 1 phần mềm diệt virus CMC trị giá 200k. ---------- Mình bán tất cả 2 với giá 200k - không bán lẻ, không mặc cả, không trả lời sms, liên hệ chữ ký...
</description>
<content:encoded>
<div>Mình mua laptop Acer được tặng 1 con chuột quang(laser light mouse- chuột quang laze) Acer chính hãng.<br /> Và 1 phần mềm diệt virus CMC trị giá 200k.<br /> ---------- Mình bán tất cả 2 với giá 200k - không bán lẻ, không mặc cả, không trả lời sms, liên hệ chữ ký --------------</div>
</content:encoded>
<category domain="http://muare.vn/f_87-LinhKien">Linh phụ kiện & Thiết bị mạng</category>
<dc:creator>mrhoangpro</dc:creator>
<guid isPermaLink="true">http://muare.vn/f_87-LinhKien/3635212</guid>
</item>
<item>



I had done same below, but "content:encoded" tag return nothing, is mean that not extend width html. can you help me, please!
VB
Dim xmlDeclaration As XmlDeclaration = xmlDoc.CreateXmlDeclaration("1.0", "utf-8", Nothing)
               Dim rootNode As XmlElement = xmlDoc.CreateElement("rss")
               rootNode.SetAttribute("version", "2.0")
               rootNode.SetAttribute("xmlns:content", "http://purl.org/rss/1.0/modules/content/")
               xmlDoc.InsertBefore(xmlDeclaration, xmlDoc.DocumentElement)
               xmlDoc.AppendChild(rootNode)


...
VB
Dim content As XmlElement = xmlDoc.CreateElement("content:encoded")
                       content.InnerXml = "<![CDATA[ " & objArt.Body & " ]]>"
                       item.AppendChild(content)
                       rootNode.AppendChild(item)
Posted

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