deutsch | english

Doc - Schedule import

If you want to import your schedule data in our website system, please create an xml file with the following structure.

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<broadcasts>
    <broadcast>
        <date>2010-01-30</date>
        <time>0:30</time>
        <duration>00:30:00</duration>
        <series><![CDATA[The show 1 title]]></series>
        <program><![CDATA[The program 1 title]]></program>
        <programuid>CC-001</programuid>
        <language>LANGUAGE</language>
    </broadcast>
    <broadcast>
        <date>2010-01-30</date>
        <time>1:00</time>
        <duration>01:00:00</duration>
        <series><![CDATA[The show n title]]></series>
        <program><![CDATA[The program n title]]></program>
        <programuid>CC-00n</programuid>
        <language>LANGUAGE</language>
    </broadcast>
</broadcasts>

element

description

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>

The xml declaration. Make sure, that your xml file has UFT-8 encoding.

<broadcasts>

The root element.

<broadcast>

The broadcast element. Use this element for every broadcast.

<date>

The date elememt. The date must be write in the format YYYY-MM-DD. Example: 2010-01-30.

<time>

The time element. The time must be written in the HH:MM format. Example: 18:30.The time must be in UTC timezone. This is very important.

<duration>

The duration element. The duration must be written in the HH:MM:SS format. Example: 00:29:38.

<series>

The series element. The series title must be witten within the CDATA part. Only plain text is allowed. Don't use HTML tags. Example: <![CDATA[The series title]]>. Use exactly the same title for the same series, as the importer uses the series title to identify the series.

<program>

The pogram element. The program title must be written within the CDATA parts. Only plain text is allowed. Don't use HTML tags. Example: <![CDATA[The program title]]>.

<programuid>

The program uid element. The program uid must be a unique number and/or string for every program. The importer uses this id to identify the program. Example: NO-1234. NO stands for Norway.

<language>

The language element. The language must be a string containing the language name. Example: ENGLISH. Use exactly the same name for the same language, as the importer uses the name to identify the language.

You can check your xml file with our xml schema file. This test ensures, that the xml file is valid. The importer works also with the same xml schema file.