Library.xml

From OLPC
Revision as of 15:47, 17 July 2007 by Lauren (talk | contribs)
Jump to: navigation, search

Here is a generic library.xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>
<library name="">
	<entry url="">
		<title></title>
		<author></author>
		<language></language>
		<date></date>
		<publisher></publisher>
		<icon></icon>
		<description></description>
	</entry>
	<entry url="">
		<title></title>
		<author></author>
		<language></language>
		<date></date>
		<publisher></publisher>
		<icon></icon>
		<description></description>
	</entry>
	<entry url="">
		<title></title>
		<author></author>
		<language></language>
		<date></date>
		<publisher></publisher>
		<icon></icon>
		<description></description>
	</entry>
</library>

The library.xml file contains the following elements and attributes:

<library name=""> 
library is the root element that defines the collection. name refers to the name of the collection.
<entry url=""> 
The entry element contains the metadata for a single item in a collection. url refers to the url for that item.
title (optional)
The title element contains the item's title.
author (optional)
The author element contains the item's author.
language (optional)
The language element contains the item's language.
date (optional)
The date element contains the item's date of composition/creation or publication/release.
publisher (optional)
The publisher element contains the item's publisher.
icon (optional)
The icon element contains the filename of the thumbnail image that is displayed next to the item's library listing.
description (optional)
The description element contains the item's description.