Monday, May 24, 2010

Anybody knows how to define Data in XML format of spirometer?

Data in xml format of spirometer got a couple of values.


eg. %26lt;E T="C" N="Data" V="0:0:0:0:0:-3:-13:-13:-10:3:... .......%26gt;

Anybody knows how to define Data in XML format of spirometer?
You example has an open-ended XML node. It should be:


%26lt;E T="C".... /%26gt;


or


%26lt;E T="C" ... %26gt;%26lt;/E%26gt;


the idea being the line of data is encapsulated, or bracketed with the start %26lt;E%26gt; and the close %26lt;/E%26gt;





then, the software will break apart the line of data, which is always text-based. If need be, numbers will be converted from the text. In your example:


%26lt;E T="C" N="Data" ...


the first two fields are T and N. The software will read the data after the equals sign and between the quotes. Furthermore, the field V="0:0:0:0:-3:-13:-10:3 ... " would probably read the field named V and split the values based on the colons -- perhaps to provide plot points on a graph.





With XML, it's all in the software that will read the text. XML itself is just a text file that represents data. Keeping data as structured %26lt;E%26gt;text%26lt;/E%26gt; allows the data to migrate to multiple software and hardware platforms. A spirometer is not a standard machine. There could be many different brands and they would all utilize their own softwares.

800flowers.com

No comments:

Post a Comment