<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<vlc id="if" param1="0"/>
<!--  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  vlm.xml: VLC media player web interface
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - >
<  Copyright (C) 2005-2006 the VideoLAN team
<  $Id$
< 
<  Authors: Antoine Cellerier <dionoea -at- videolan -dot- org>
< 
<  This program is free software; you can redistribute it and/or modify
<  it under the terms of the GNU General Public License as published by
<  the Free Software Foundation; either version 2 of the License, or
<  (at your option) any later version.
< 
<  This program is distributed in the hope that it will be useful,
<  but WITHOUT ANY WARRANTY; without even the implied warranty of
<  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
<  GNU General Public License for more details.
< 
<  You should have received a copy of the GNU General Public License
<  along with this program; if not, write to the Free Software
<  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
<vlc id="end"/>

<vlm>
<vlc id="foreach" param1="el" param2="vlm"  />
  <vlc id="if" param1="el.type value 'broadcast' strcmp 0 =" />
    <broadcast name="<vlc id="value" param1="el.name"/>" enabled="<vlc id="value" param1="el.enabled" />" loop="<vlc id="value" param1="el.loop"/>">
      <output><vlc id="value" param1="el.output" /></output>
      <inputs>
        <vlc id="foreach" param1="in" param2="el.inputs" />
          <input><vlc id="value" param1="in value htmlspecialchars" /></input>
        <vlc id="end" />
      </inputs>
      <options>
        <vlc id="foreach" param1="opt" param2="el.options" />
          <option><vlc id="value" param1="opt" /></option>
        <vlc id="end" />
      </options>
      <instances>
        <vlc id="foreach" param1="inst" param2="el.instances" />
          <instance name="<vlc id="value" param1="inst.name"/>" state="<vlc id="value" param1="inst.state"/>" position="<vlc id="value" param1="inst.position"/>" time="<vlc id="value" param1="inst.time"/>" length="<vlc id="value" param1="inst.length"/>" rate="<vlc id="value" param1="inst.rate"/>" title="<vlc id="value" param1="inst.title"/>" chapter="<vlc id="value" param1="inst.chapter"/>" seekable="<vlc id="value" param1="inst.seekable"/>" playlistindex="<vlc id="value" param1="inst.playlistindex"/>" />
        <vlc id="end" />
      </instances>
    </broadcast>
  <vlc id="else" />
    <vlc id="if" param1="el.type value 'vod' strcmp 0 =" />
      <vod name="<vlc id="value" param1="el.name"/>" enabled="<vlc id="value" param1="el.enabled" />">
        <output><vlc id="value" param1="el.output" /></output>
        <inputs>
          <vlc id="foreach" param1="in" param2="el.inputs" />
            <input><vlc id="value" param1="in value htmlspecialchars" /></input>
          <vlc id="end" />
        </inputs>
        <options>
          <vlc id="foreach" param1="opt" param2="el.options" />
            <option><vlc id="value" param1="opt" /></option>
          <vlc id="end" />
        </options>
      <instances>
        <vlc id="foreach" param1="inst" param2="el.instances" />
          <instance name="<vlc id="value" param1="inst.name"/>" state="<vlc id="value" param1="inst.state"/>" position="<vlc id="value" param1="inst.position"/>" time="<vlc id="value" param1="inst.time"/>" length="<vlc id="value" param1="inst.length"/>" rate="<vlc id="value" param1="inst.rate"/>" title="<vlc id="value" param1="inst.title"/>" chapter="<vlc id="value" param1="inst.chapter"/>" seekable="<vlc id="value" param1="inst.seekable"/>" playlistindex="<vlc id="value" param1="inst.playlistindex"/>" />
        <vlc id="end" />
      </instances>
      </vod>
    <vlc id="else" />
      <schedule name="<vlc id="value" param1="el.name"/>" enabled="<vlc id="value" param1="el.enabled" />" date="<vlc id="value" param1="el.date"/>" period="<vlc id="value" param1="el.period"/>" repeat="<vlc id="value" param1="el.repeat"/>">
        <commands>
          <vlc id="foreach" param1="com" param2="el.commands" />
            <command><vlc id="value" param1="com" /></command>
          <vlc id="end" />
        </commands>
      </schedule>
    <vlc id="end" />
  <vlc id="end" />
<vlc id="end" />
</vlm>
