<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <!-- SPDX-License-Identifier: BSD-3-Clause -->
  <!-- SPDX-FileCopyrightText: 2018-2021 Carles Fernandez-Prades <carles.fernandez@cttc.es> -->
  <xs:element name="boost_serialization">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="GNSS-SDR_gal_almanac_map">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:byte" name="count"/>
              <xs:element type="xs:byte" name="item_version"/>
              <xs:element name="item" maxOccurs="unbounded" minOccurs="0">
                <xs:complexType>
                  <xs:sequence>
                    <xs:element type="xs:byte" name="first"/>
                    <xs:element name="second">
                      <xs:complexType>
                        <xs:sequence>
                          <xs:element type="xs:byte" name="PRN"/>
                          <xs:element type="xs:float" name="delta_i"/>
                          <xs:element type="xs:byte" name="toa"/>
                          <xs:element type="xs:byte" name="WNa"/>
                          <xs:element type="xs:float" name="M_0"/>
                          <xs:element type="xs:float" name="ecc"/>
                          <xs:element type="xs:float" name="sqrtA"/>
                          <xs:element type="xs:float" name="OMEGA_0"/>
                          <xs:element type="xs:float" name="omega"/>
                          <xs:element type="xs:float" name="OMEGAdot"/>
                          <xs:element type="xs:float" name="af0"/>
                          <xs:element type="xs:float" name="af1"/>
                          <xs:element type="xs:byte" name="IODa"/>
                          <xs:element type="xs:byte" name="E5b_HS"/>
                          <xs:element type="xs:byte" name="E1B_HS"/>
                          <xs:element type="xs:byte" name="E5a_HS"/>
                        </xs:sequence>
                        <xs:attribute type="xs:byte" name="class_id" use="optional"/>
                        <xs:attribute type="xs:byte" name="tracking_level" use="optional"/>
                        <xs:attribute type="xs:byte" name="version" use="optional"/>
                      </xs:complexType>
                    </xs:element>
                  </xs:sequence>
                  <xs:attribute type="xs:byte" name="class_id" use="optional"/>
                  <xs:attribute type="xs:byte" name="tracking_level" use="optional"/>
                  <xs:attribute type="xs:byte" name="version" use="optional"/>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
            <xs:attribute type="xs:byte" name="class_id"/>
            <xs:attribute type="xs:byte" name="tracking_level"/>
            <xs:attribute type="xs:byte" name="version"/>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute type="xs:string" name="signature"/>
      <xs:attribute type="xs:byte" name="version"/>
    </xs:complexType>
  </xs:element>
</xs:schema>
