[Xml1-wire-devel] examples
Status: Planning
Brought to you by:
vinculum
|
From: Byron K. A. <b.k...@ie...> - 2000-11-02 23:33:34
|
I just downloaded XML Spy and started playing with it. I figured I would construct a partial straw-man DTD and possible XML file for 1-wire tagging. It seems likely that we won't be using DTD's but I though I would post this for the sake of discussion. I am very new to XML so there might be gross errors in my understanding. Anyway, this is my initial vision of how XML tagging might look. Is this at all on the right track? Or am I way off? Byron K. Appelt Universal Vinculum Inc. http://www.vinculum.com <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE OWCluster SYSTEM "C:\My Documents\1-wireTag.dtd"> <OWCluster> <ClusterRev>1</ClusterRev> <ClusterNum>06BE6912</ClusterNum> <Description>1-Wire Weather Station</Description> <ManufacturerCode>000000</ManufacturerCode> <Manufacturer>Dallas Semiconductor</Manufacturer> <Enum>20</Enum> <SecondsSince1970>936029523</SecondsSince1970> <OWSensor> <OWNetAddress>B20000000033CF1D</OWNetAddress> <AccessMethod> <AM_TEMPERATURE_1820/> </AccessMethod> </OWSensor> </OWCluster> <?xml version="1.0" encoding="UTF-8"?> <!-- edited with XML Spy v3.0.7 (http://www.xmlspy.com) by Byron K. Appelt (Universal Vinculum Inc.) --> <!ELEMENT Manufacturer (#PCDATA)> <!ELEMENT AccessMethod (AM_TEMPERATURE_1820 | AM_SWITCH_2406)> <!ELEMENT SecondsSince1970 (#PCDATA)> <!ELEMENT Enum (#PCDATA)> <!ELEMENT AM_TEMPERATURE_1820 EMPTY> <!ELEMENT AM_SWITCH_2406 EMPTY> <!ELEMENT ManufacturerCode (#PCDATA)> <!ELEMENT OWNetAddress (#PCDATA)> <!ELEMENT ClusterRev (#PCDATA)> <!ELEMENT ClusterNum (#PCDATA)> <!ELEMENT ChannelState (#PCDATA)> <!ELEMENT ChannelMask (#PCDATA)> <!ELEMENT InitState (#PCDATA)> <!ELEMENT Description (#PCDATA)> <!ELEMENT OWCluster (ClusterRev, ClusterNum, Description?, ManufacturerCode?, Manufacturer?, Enum?, SecondsSince1970?, OWSensor*)> <!ELEMENT OWSensor (OWNetAddress, AccessMethod, ChannelMask?, ChannelState?, InitState?, Description?)> |