KlipLibrary
Introduction
NOTE: If you are not familiar with Klip files, please see the
KlipFolio program at www.klipfarm.com
The KlipLibrary is a utility class I designed to allow a
developer to programatically create a KlipFolio .food file quickly and easily.
Klip's food files provide the content for a website's Klip, a small newsticker
like program. Content authors or website developers would create one Klip file
for their site that references a content food file. The food file is a very
simple XML file with the following format:
<klipfood>
<item>
<title>This is a title for this item.</title>
<link>http://www.mylink.com/</link>
</item>
</klipfood>
There can be any number of items within the food file itself.
While it is fairly easy to create such an XML file yourself, my class library
makes it extremely simple. For example, to create a food file with two items,
you can use the following code:
KlipFood theFood = new KlipFood();
theFood.KlipFoodItems.AddFoodItem("Go to Brian's home page.", "http://brian.vallelunga.com");
theFood.KlipFoodItems.AddFoodItem("Visit Microsoft.", "http://www.microsoft.com");
theFood.WriteKlipFoodFile("MyFoodFile.food");
Good news! The KlipLibrary now has the ability to create the actual Klip file that
your users will download initially. To create the Klip file, you use code such as
the following:
KlipFile myFile = new KlipFile();
myFile.Author = "Brian Vallelunga";
myFile.Content = "http://brian.vallelunga.com/content.food";
myFile.WriteKlipFile("MyKlipFile.klip");
As the file format matures, and Klip features are added, I will
update this tool.
Download Here
Revision History
19 June 2003
Version 0.6.0 released
- Added support for 2.0
- Added
Note property to KlipFood class.
20 September 2002
Version 0.5.0 released.
- Added support for KlipFolio 1.5
- Properties
Referer, Language, Country, UniqueId were added.
- Changed property
Script to KlipScript
04 June 2002
Version 0.4.0 release made public.
-
Added full support for KlipFolio version 1.1 Food and Klip files.
16 April 2002
Version 0.3.0 release made public.
-
Added the ability to create the actual Klip file in addition to the food file!
-
Changed public method
WriteKlipFoodXml(…) to WriteKlipFoodFile(…).
14 April 2002
Version 0.2.0 release made public.
-
Implemented the KlipFoodItems as a Collection using the ICollection interface.
-
Changed public method
GetKlipFoodXml() to the property KlipFoodXml.
13 April 2002
Initial 0.1.0 release made public.