3. Basic Structure of the templates

All templates need a minimum set of elements to work. You may find additional information in the examples and the detailed description of elements and attributes. Mandatory elements must be part of every template. Here is the minimum set of elements for an XML template file.
The line end character is UNIX style: Only 0Dhex is needed.
Please note: There are no commands in this structure here, so this template will have no useful function:

  <?xml version="1.0" encoding="UTF-8"?> 
  <Device name="" template_version="1.1">
     <IPBox template_version="0" ip_box_is_set="true" max_relais="1">
       <IP_Adresse></IP_Adresse>
       <Port>80</Port>
       <Model>Example model</Model>
       <Company>The Relay Works</Company>
       <Username></Username>
       <Passwort></Passwort> 
       <Relays> 
             <Relay position="1" status="true">Example Relay 1</Relay>
       </Relays> 
       <Relaytype_CGI> 
              <http_request>
                     <url_string></url_string> 
       </Relaytype_CGI> 
     </IPBox>
  </Device>
 

<- Previous Chapter | Next Chapter ->