I have data from an embedded device that I want to represent as an XML
schema. Each data sample in the device's data log consists of a 24-bit
pressure value plus a 1 byte temperature value. I am an XML schema newbie.
A 24-bit unsigned integer value has a range of 0 to 8388607. Is there some
way I can represent this in an XML schema?
Here is what the data looks like:
<DataLog>
<Sample>
<Pressure>122456></Pressure>
<Temperature>23</Temperature>
</Sample>
<Sample>
<Pressure>132245></Pressure>
<Temperature>27</Temperature>
</Sample>
<Sample>
<Pressure>172245></Pressure>
<Temperature>32</Temperature>
</Sample>
</DataLog>
What would a logical XML schema look like?
<xs:complexType name="LogData" >
<xs:complexType name="Sample" >
<xs:element name="Pressure" type="xs:???">
<xs:element name="Temperature" type="xs:unsignedByte">
</xs:complexType>
</xs:complexType>
Thanks in advance for any tips or suggestions,
-Ed