B.1.7.2 file syntax, B.1.7.2 – Campbell Scientific LoggerNet Datalogger Support Software User Manual

Page 502

Advertising
background image

Appendix B. Campbell Scientific File Formats

In addition to these pre-defined entities, arbitrary unicode characters can be

represented by using the sequence &xxx; where xxx is the decimal unicode

code value for the desired character.

For more details regarding XML documents and their contents, you can visit

the W3C consortium web page at http://www.w3.org/XML. In addition, they

offer an excellent tutorial at http://www.w3schools.com/xml/default.asp.

B.1.7.2 File Syntax

Our formal description of the file format will not be the character-by-character

description generally given in EBNF formats but will instead describe the

general XML Schema (see http://www.w3.org/TR/xmlschema-0 for details).

<xsd:schema

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<xsd:element name="csixml" type="csixmlType"/>

<xsd:complexType name="csixmlType">

<xsd:sequence>

<xsd:element

name="head"

type="headType"

minOccurs="1"

maxOccurs="1"/>

<xsd:element

name="data"

type="dataType"

minOccurs="1"

maxOccurs="1"/>

</xsd:sequence>

<xsd:attribute name="version" fixed="1.0"/>

</xsd:complexType>

<xsd:complexType name="headType">

<xsd:sequence>

<xsd:element

name="environment"

type="environmentType"

minOccurs="1"

maxOccurs="1"/>

<xsd:element

name="fields"

type="fieldsType"

minOccurs="1"

maxOccurs="1"/>

</xsd:sequence>

</xsd:complexType>

<xsd:complexType name="environmentType">

<xsd:sequence>

<xsd:element

name="station-name"

type="xsd:string"

minOccurs="1"

maxOccurs="1"/>

<xsd:element

name="table-name"

type="xsd:string"

minOccurs="1"

maxOccurs="1"/>

B-8

Advertising