XML Files

Below are samples of the video, music, and photo xml files that you can use to create your own files if you are manually creating your xml files.


Videos

videos.xml


<xml>
<viddb>
<movie>
<origtitle>Alice in Wonderland</origtitle>
<year>2010</year>
<genre>Adventure, Family, Fantasy</genre>
<mpaa>Rated PG</mpaa>
<director>Tim Burton</director>
<actors>Mia Wasikowska, Johnny Depp, Helena Bonham Carter, Crispin Glover</actors>
<description>19-year-old Alice returns to the magical world from her childhood adventure, where she reunites with her old friends and learns of her true destiny: to end the Red Queen's reign of terror.</description>
<path>Z:\WWW\WWW-pub\Media\Videos\AIW.mp4</path>
<length>110</length>
<videocodec>mp4</videocodec>
<poster>images/Alice In Wonderland.jpg</poster>
</movie>
.
.
.
<movie>
<origtitle>Avatar</origtitle>
<year>2009</year>
<genre>Action, Adventure, Sci-Fi</genre>
<mpaa>Rated PG-13</mpaa>
<director>James Cameron</director>
<actors>Sam Worthington, Zoe Saldana, Sigourney Weaver, Stephen Lang</actors>
<description>A paraplegic marine dispatched to the moon Pandora on a unique mission becomes torn between following his orders and protecting the world he feels is his home.</description>
<path>Z:\WWW\WWW-pub\Media\Videos\Avatar.mp4</path>
<length>120</length>
<videocodec>mp4</videocodec>
<poster>images/Avatar.jpg</poster>
</movie>
.
.
.
</viddb>
</xml>

NOTE:
The <length> is in minutes.
The poster art "images" folder is under the folder that contains the video.

Valid Rating Values
G
NC-17
PG
PG-13
R
UR
UNRATED
NR
TV-Y
TV-Y7
TV-Y7-FV
TV-G
TV-PG
TV-14
TV-MA

 

Tip

Roksbox user Drew Calder created an online applicaton for generating a video XML file. Click the link below to use the online Roksbox XML generator.

Roksbox XML Generator



Tip

An alternative to using xml files is to use ThumbGen to create movie sheets and information files.

 

Music

music.xml


<?xml version='1.0'?>
<MusicDatabase>
<Songs>
<Song>
<Title>Love Me Do</Title>
<PerformingArtist>The Beatles</PerformingArtist>
<ContainedInAlbum>1</ContainedInAlbum>
<SongLength>2:20</SongLength>
<Year value="2000"/>
<Genre>Classic Rock</Genre>
<Location>
<Path>Z:\WWW\WWW-Pub\Media\Music\The Beatles\1\01 - Love Me Do.mp3</Path>
</Location>
</Song>
<Song>
<Title>From Me To You</Title>
<PerformingArtist>The Beatles</PerformingArtist>
<ContainedInAlbum>1</ContainedInAlbum>
<SongLength>1:56</SongLength>
<Year value="2000"/>
<Genre>Classic Rock</Genre>
<Location>
<Path>Z:\WWW\WWW-Pub\Media\Music\The Beatles\1\02 - From Me To You.mp3</Path>
</Location>
</Song>
.
.
.
<Song>
<Title>Take It Easy</Title>
<PerformingArtist>Eagles</PerformingArtist>
<ContainedInAlbum>The Very Best Of The Eagles</ContainedInAlbum>
<SongLength>3:32</SongLength>
<Year value="2007"/>
<Location>
<Path>Z:\WWW\WWW-Pub\Media\Music\Eagles\The Very Best Of The Eagles\01 - Take It Easy.mp3</Path>
</Location>
</Song>
<Song>
<Title>Witchy Woman</Title>
<PerformingArtist>Eagles</PerformingArtist>
<ContainedInAlbum>The Very Best Of The Eagles</ContainedInAlbum>
<SongLength>4:11</SongLength>
<Year value="2007"/>
<Location>
<Path>Z:\WWW\WWW-Pub\Media\Music\Eagles\The Very Best Of The Eagles\02 - Witchy Woman.mp3</Path>
</Location>
</Song>
.
.
.
</Songs>
</MusicDatabase>

NOTE:
The <SongLength> is in hh:mm:ss format.
The album art should be called "folder.jpg", and located in the same folder as the mp3 file.



Photos

photos.xml


<?xml version="1.0"?>
<PicaJet_Database>
<Categories>
<A name="Nature">
<A id="34" name="Flowers"/>
<A id="35" name="Premium Autumn Trees"/>
<A id="39" name="Best Flowers"/>
</A>
<A name="Miscellaneous">
<A id="38" name="Stress"/>
</A>
<A name="Holidays">
<A id="32" name="Halloween"/>
<A id="40" name="Christmas Images"/>
</A>
<A name="Seasons">
<A id="25" name="Spring"/>
<A id="26" name="Fall"/>
<A id="27" name="Winter"/>
<A id="28" name="Dazzling Fall Colors"/>
</A>
<A name="People">
<A id="4" name="Family"/>
<A id="5" name="Friends"/>
</A>
<A name="Places">
<A id="41" name="NYC"/>
<A id="23" name="Alaska"/>
</A>
</Categories>
<Images>
<Image>
<Author></Author>
<Caption></Caption>
<Date>2010:02:27 20:36:38</Date>
<Path>Z:\WWW\WWW-Pub\Media\Photos\Flowers\290230410nOADSc_fs_Resized.jpg</Path>
<CategList>34</CategList>
</Image>
<Image>
<Author></Author>
<Caption></Caption>
<Date>2010:02:21 20:10:01</Date>
<Path>Z:\WWW\WWW-Pub\Media\Photos\Flowers\290230618mlgMNm_fs.jpg</Path>
<CategList>34</CategList>
</Image>
.
.
.
<Image>
<Author></Author>
<Caption></Caption>
<Date>2010:02:27 20:38:01</Date>
<Path>Z:\WWW\WWW-Pub\Media\Photos\Dazzling Fall Colors\440697757nxNHJU_fs_Resized.jpg</Path>
<CategList>28</CategList>
</Image>
<Image>
<Author></Author>
<Caption></Caption>
<Date>2010:02:21 20:09:55</Date>
<Path>Z:\WWW\WWW-Pub\Media\Photos\Dazzling Fall Colors\440698063UNttYA_fs.jpg</Path>
<CategList>28</CategList>
</Image>
.
.
.
</Images>
</PicaJet_Database>


NOTE: You must define at least one category and subcategory.


Categories

Categories are defined as <A name="category name"> where "category name" is your category name.


Subcategories

Subcategories are defined as <A id="subcatid" name="subcategory name"/> where "subcatid" is a unique id, and "subcategory name" is your subcategory name. You can have multiple subcategories below each category, but they will all be one level below the category.

For example:

<A name="Seasons">
<A id="25" name="Spring"/>
<A id="26" name="Fall"/>
<A id="27" name="Winter"/>
<A id="28" name="Dazzling Fall Colors"/>
</A>

This defines a category with the name Seasons. It has four subctegories below it, all on the same level. Each subcategory has a unique id.

In the xml file, the entry <CategList></CategList> identifies the subcategory that the photo belongs to. The CategList entry must match one of the subcategory unique ids. The entry <CategList>28</CategList> whould mean to include this photo in the "Dazzling Fall Colors" subcategory (id="28").

The photos for each subcategory should be located consecutively within the xml file. Otherwise, they will not fall withing the desired subcategories when viewed on Roksbox.