Blogging and News Syndication Software

Blogger API, RSS API, Atom API, and more.
posts - 17, comments - 4, trackbacks - 107

My Links

News

Tortuga Components / Software Tools Home

See Also: Chilkat Software

Article Categories

Archives

Post Categories

Recommended

Read ATOM News Feed via HTTP Proxy

This C# example code uses the free Tortuga ATOM API Component to read an Atom News Feed via an HTTP Proxy.



// Download and read an ATOM news feed using an HTTP Proxy
Tortuga.Atom atomDoc = new Tortuga.Atom();
    
// Download Google headline news via Google's Atom Feed.
// The proxy domain can be an IP address or IP hostname.
bool success = atomDoc.DownloadAtomByProxy("http://news.google.com/news?ned=us&topic=h&output=atom",
    "130.208.18.30",3124);
if (!success)
{
    return;
}
	
// Loop over the atom document entries and add each title to a list box.
int n = atomDoc.NumEntries;
int i;
for (i=0; i<n; i++)
{
    Tortuga.Atom entry = atomDoc.GetEntry(i);
    listBox1.Items.Add(entry.GetElement("title",0));
}		

Print | posted on Friday, September 30, 2005 7:01 AM |

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 3 and 1 and type the answer here:

Powered by: