XML Schema Examples
From Xibo
Contents |
Flash
<media id="1" duration="60" type="flash" lkid="" schemaVersion="1">
<options>
<uri>1.swf</uri>
</options>
<raw />
</media>
Image
<media id="1" duration="60" type="image" lkid="" schemaVersion="1">
<options>
<uri>1.jpg</uri>
</options>
<raw />
</media>
PowerPoint / OpenOffice Doc
<media id="1" duration="60" type="powerpoint" lkid="" schemaVersion="1">
<options>
<uri>1.ppt</uri>
</options>
<raw />
</media>
Text
<media id="47cc1ffacdabb" type="text" duration="60" lkid="" schemaVersion="1">
<options>
<direction>none</direction>
</options>
<raw>
<text>
<![CDATA[
This is a piece of basic text
]]>
</text>
</raw>
</media>
Ticker
<media id="47cc1ffacdabb" type="ticker" duration="60" lkid="" schemaVersion="1">
<options>
<direction>none</direction>
<copyright>Copyright</copyright>
<uri>http://www.xibo.org.uk/feed.rss</uri>
</options>
<raw>
<template>
<![CDATA[
]]>
</template>
</raw>
</media>
Video
<media id="1" duration="60" type="video" lkid="" schemaVersion="1">
<options>
<uri>1.wmv</uri>
</options>
<raw />
</media>
Web Page
<media id="1" duration="60" type="webpage" lkid="" schemaVersion="1">
<options>
<uri>http://www.xibo.org.uk</uri>
</options>
<raw />
</media>
Embedded HTML
<media id="47cc1ffacdabb" duration="60" type="embedded" lkid="" schemaVersion="1">
<options />
<raw>
<embedHtml>
<![CDATA[
some HTML
]]>
</embedHtml>
<embedScript>
<![CDATA[
some script
]]>
</embedScript>
</raw>
</media>
Microblog Search
<media id="47cc1ffacdabb" type="microblog" duration="60" lkid="" schemaVersion="1">
<options>
<direction>single</direction>
<term>#xibo</term>
<updateInterval>30</updateInterval>
<speed>5</speed>
<length>10</length>
<twitter>True</twitter>
<identica>True</identica>
</options>
<raw>
<template>
<![CDATA[
<p><span style="color: #800000">[text]</span></p>
<p>[author]</p>
]]>
</template>
</raw>
</media>
Options
- direction - only single supported. Could be extended to support scrolling
- term - the term to search for
- updateInterval - How many minutes between polling the Microblogs for updates
- speed - How long each post should remain on the screen
- length - How many posts to hold in rotation at any one time
- twitter - True/False. Should we search Twitter
- identica - True/False. Should we search Identi.ca

