Chilkat Examples

ChilkatHOME.NET Core C#Android™AutoItCC#C++Chilkat2-PythonCkPythonClassic ASPDataFlexDelphi ActiveXDelphi DLLGoJavaLianjaMono C#Node.jsObjective-CPHP ActiveXPHP ExtensionPerlPowerBuilderPowerShellPureBasicRubySQL ServerSwift 2Swift 3,4,5...TclUnicode CUnicode C++VB.NETVBScriptVisual Basic 6.0Visual FoxProXojo Plugin

VB.NET Examples

Web API Categories

ASN.1
AWS KMS
AWS Misc
Amazon EC2
Amazon Glacier
Amazon S3
Amazon S3 (new)
Amazon SES
Amazon SNS
Amazon SQS
Async
Azure Cloud Storage
Azure Key Vault
Azure Service Bus
Azure Table Service
Base64
Bounced Email
Box
CAdES
CSR
CSV
Certificates
Cloud Signature CSC
Code Signing
Compression
DKIM / DomainKey
DNS
DSA
Diffie-Hellman
Digital Signatures
Dropbox
Dynamics CRM
EBICS
ECC
Ed25519
Email Object
Encryption
FTP
FileAccess
Firebase
GMail REST API
GMail SMTP/IMAP/POP
Geolocation
Google APIs
Google Calendar
Google Cloud SQL
Google Cloud Storage
Google Drive
Google Photos
Google Sheets
Google Tasks
Gzip
HTML-to-XML/Text
HTTP

HTTP Misc
IMAP
JSON
JSON Web Encryption (JWE)
JSON Web Signatures (JWS)
JSON Web Token (JWT)
Java KeyStore (JKS)
MHT / HTML Email
MIME
MS Storage Providers
Microsoft Graph
Misc
NTLM
OAuth1
OAuth2
OIDC
Office365
OneDrive
OpenSSL
Outlook
Outlook Calendar
Outlook Contact
PDF Signatures
PEM
PFX/P12
PKCS11
POP3
PRNG
REST
REST Misc
RSA
SCP
SCard
SFTP
SMTP
SSH
SSH Key
SSH Tunnel
ScMinidriver
SharePoint
SharePoint Online
Signing in the Cloud
Socket/SSL/TLS
Spider
Stream
Tar Archive
ULID/UUID
Upload
WebSocket
XAdES
XML
XML Digital Signatures
XMP
Zip
curl
uncategorized

 

 

 

(VB.NET) Read RSS Feed

Sample code showing how to read an RSS feed and emit the contents.

Chilkat .NET Downloads

Chilkat .NET Framework

Chilkat for .NET Core

Dim rss As New Chilkat.Rss


' Download from the feed URL:
Dim success As Boolean = rss.DownloadRss("http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml")
If (success <> True) Then
    Debug.WriteLine(rss.LastErrorText)
    Exit Sub
End If


' Get the 1st channel.
Dim rssChannel As Chilkat.Rss = rss.GetChannel(0)
If (rss.LastMethodSuccess = False) Then
    Debug.WriteLine("No channel found in RSS feed.")
    Exit Sub
End If


' Display the various pieces of information about the channel:
Debug.WriteLine("Title: " & rssChannel.GetString("title"))
Debug.WriteLine("Link: " & rssChannel.GetString("link"))
Debug.WriteLine("Description: " & rssChannel.GetString("description"))

' For each item in the channel, display the title, link,
' publish date, and categories assigned to the post.
Dim numItems As Integer = rssChannel.NumItems
Dim i As Integer

For i = 0 To numItems - 1
    Dim rssItem As Chilkat.Rss = rssChannel.GetItem(i)

    Debug.WriteLine("----")
    Debug.WriteLine("Title: " & rssItem.GetString("title"))
    Debug.WriteLine("Link: " & rssItem.GetString("link"))
    Debug.WriteLine("pubDate: " & rssItem.GetString("pubDate"))

    Dim numCategories As Integer = rssItem.GetCount("category")
    Dim j As Integer
    If (numCategories > 0) Then
        For j = 0 To numCategories - 1
            Debug.WriteLine("    category: " & rssItem.MGetString("category",j))
        Next


    End If


Next




 

© 2000-2024 Chilkat Software, Inc. All Rights Reserved.