Chỉ cần một đoán, nhưng bạn có thể thử áp dụng XSL stylesheet sau (lấy từ http://snippets.dzone.com/posts/show/1162 và sửa đổi theo đề nghị của cherdt trong các ý kiến dưới đây):
<xsl:stylesheet version="1.0"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dc="http://purl.org/dc/elements/1.1/">
<xsl:output method="html"/>
<xsl:template match="/">
<xsl:apply-templates select="/atom:feed/atom:head"/>
<xsl:apply-templates select="/atom:feed"/>
</xsl:template>
<xsl:template match="atom:feed/atom:head">
<h3><xsl:value-of select="atom:title"/></h3>
<xsl:if test="atom:tagline"><p><xsl:value-of select="atom:tagline"/></p></xsl:if>
<xsl:if test="atom:subtitle"><p><xsl:value-of select="atom:subtitle"/></p></xsl:if>
</xsl:template>
<xsl:template match="/atom:feed">
<h3><xsl:value-of select="atom:title"/></h3>
<xsl:if test="atom:tagline"><p><xsl:value-of select="atom:tagline"/></p></xsl:if>
<xsl:if test="atom:subtitle"><p><xsl:value-of select="atom:subtitle"/></p></xsl:if>
<ul>
<xsl:apply-templates select="atom:entry"/>
</ul>
</xsl:template>
<xsl:template match="atom:entry">
<li>
<a href="{atom:link[@rel='related']/@href}" title="{substring(atom:published, 0, 11)}"><xsl:value-of select="atom:title"/></a>
<xsl:choose>
<xsl:when test="atom:content != ''">
<p><xsl:value-of select="atom:content" disable-output-escaping="yes" /></p>
</xsl:when>
<xsl:otherwise>
<p><xsl:value-of select="atom:summary" disable-output-escaping="yes" /></p>
</xsl:otherwise>
</xsl:choose>
</li>
</xsl:template>
</xsl:stylesheet>
Để thức ăn bạn nhận được. Để chuyển đổi tài liệu, hãy tham khảo this question's selected answer và sau đó bạn có thể thử gán XML kết quả cho trình duyệt WebBrowser.
Tôi đoán bạn đang trỏ điều khiển WebBrowser của bạn đến nguồn cấp dữ liệu, nhưng sử dụng phương pháp này, bạn cần tải xuống nguồn cấp dữ liệu bằng cách sử dụng, ví dụ: Indy (xem TIdHTTP
và phương pháp Get()
) hiển thị trong tầm kiểm soát của bạn.
Xin lưu ý rằng ở trên chỉ là phỏng đoán, nhưng tôi tin rằng đó là một giả định tốt. :)