Free Download

Site Search

 

Top Download

Showing posts with label xml. Show all posts
Showing posts with label xml. Show all posts

Thursday, June 12, 2008

35mm Photo Viewer

(Not Just Another?) Photo Viewer.
35mm photo viewer screenshot - Alpha skin

There might be only one way to look at photos, but there are an infinite number of ways to organize and present them.

This DHTML-driven browser-based app provides viewing of photos sorted by collection. A few different CSS-driven "skins" are also available to choose from. Thumbnails are dynamically displayed allowing for quick visual searches within a collection, and XML/XSLT functionality provides for more dynamic data sources and ease of updates.

Sound effects are also added for fun where supported, and are fairly simple to modify.

This viewer is best suited for smaller collections of photos, although it could easily enough be split across multiple pages or sections on a web server; the idea is that all photos are accessible from one actual HTML page, but this could be split to lower the page weight and load time.

Development and testing has been done under IE 5.0, 5.5 and 6.0, Netscape 7, Mozilla Firefox and Safari.

As a general notice, this project is in flux and functionality may change as bugs are found and fixed and features are added.

Wednesday, September 19, 2007

Create an Atom Feed

This sample C# program demonstrates how to create an Atom feed using the Tortuga Atom .NET API.

// Create an Atom Feed in C#

Tortuga.Atom feed = new Tortuga.Atom();



// Initialize the feed.

feed.NewFeed();

feed.SetTopAttr("version","0.3");

feed.SetTopAttr("xml:lang","en");



feed.AddElement("generator","TortugaAtom/1.0");

feed.AddElement("title","My Cool Atom Feed");

feed.AddLink("alternate","http://www.myCoolAtomFeed.com/news","","text/html");

feed.AddElement("tagline","Top Stories");

feed.AddPerson("author","Tortuga Group LLC","","news-feedback@worldwideweb-x.com");

feed.AddElement("copyright","Copyright 2005 Tortuga Group LLC");

feed.AddElementDate("modified",DateTime.Now);



// Build an entry.

Tortuga.Atom entry = new Tortuga.Atom();



// Inialize the object...

entry.NewEntry();



// Build the atom entry

entry.AddElement("title","Tortuga Atom API Released");

entry.AddLink("alternate","http://www.myCoolAtomFeed.com/news/story1.html","","text/html");

entry.AddElement("id","763489562980");

entry.AddElementDate("issued",DateTime.Now);

entry.AddElementDate("modified",DateTime.Now);

entry.AddElementHtml("content","<br><b>This is the HTML content for this story</b><br>");

entry.SetElementAttr("content",0,"type","text/html");

entry.SetElementAttr("content",0,"mode","escaped");



// Add the entry to the feed.

feed.AddEntry(entry.ToXmlString());



// Build another atom entry

entry.NewEntry();

entry.AddElement("title","Tortuga Blogger API Released");

entry.AddLink("alternate","http://www.myCoolAtomFeed.com/news/story2.html","","text/html");

entry.AddElement("id","763489562981");

entry.AddElementDate("issued",DateTime.Now);

entry.AddElementDate("modified",DateTime.Now);

entry.AddElementHtml("content","<br><b>This is the HTML content for the 2nd story</b><br>");

entry.SetElementAttr("content",0,"type","text/html");

entry.SetElementAttr("content",0,"mode","escaped");



// Add the entry to the feed.

feed.AddEntry(entry.ToXmlString());



MessageBox.Show(feed.ToXmlString());