<!–

This file is part of CPEE.

CPEE 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 3 of the License, or (at your option) any later version.

CPEE 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
CPEE (file COPYING in the main directory).  If not, see
<http://www.gnu.org/licenses/>.

–>

<grammar xmlns=“relaxng.org/ns/structure/1.0” datatypeLibrary=“www.w3.org/2001/XMLSchema-datatypes”>

<start>
  <element name="instances">
    <zeroOrMore>
      <ref name="instance"/>
    </zeroOrMore>
      </element>
</start>

<define name="instance">
  <element name='instance'>
    <attribute name='id'>
      <data type="integer"/>
    </attribute>
    <attribute name='uuid'>
      <data type="string"/>
    </attribute>
    <attribute name='state'>
      <data type="string"/>
    </attribute>
    <attribute name='state_changed'>
      <data type="dateTime"/>
    </attribute>
    <data type="string"/>
  </element>
</define>

</grammar>