Byte Element

<byte>

The <byte> element defines the fields within a datapoint.

The following table lists the attributes for the <byte> element.

AttributeDescriptionRequired /Optional
indexSpecifies the starting byte of the datapoint. Index 0 is the first byte.Required
lengthDefines the number of bytes within the input datapoint.Optional
valueDefines the value of the byte, if any.Optional

Example

<nvs>
  <nv ... >
    <byte index="0" length="1">
      <attribute ... />
    </byte>
  </nv>
</nvs>

XML Schema Definition

  <xs:element name="byte">
    <xs:complexType>
      <xs:sequence>
        <xs:element ref="attribute" minOccurs="0" maxOccurs="unbounded" />
      </xs:sequence>
        <xs:attribute name="index" use="required" >
          <xs:simpleType>
            <xs:restriction base="xs:nonNegativeInteger">
              <xs:minInclusive value="0" />
              <xs:maxInclusive value="4095" />
            </xs:restriction>
          </xs:simpleType> 
      </xs:attribute>       
      <xs:attribute name="length" type="xs:NMTOKEN" use="optional" />
      <xs:attribute name="value" type="xs:NMTOKEN" use="optional" />    
    </xs:complexType>
  </xs:element>