Appendix A: Marshalling Protocol
218
NetLinx Programming Language Reference Guide
Types Supported in the XML Marshaller (Cont.)
DOUBLE
8-byte IEEE 754 float value. If var is an element of an
array, name is replaced with <index></index>. The
index value, and the type are optional. Typically, only
<var><data>Data</data></var> is needed.
<var>
<name>MyName</name>
<type>float.IEEE.754.64</type>
<data>4.56</data>
</var>
STRUCT
A structure containing one or more fields. Each ele-
ment within a structure is self-descriptive and can be
any of the types in this table. If the struct is the outer-
most parent, then name is optional. If struct is an ele-
ment of an array, name is replaced with
<index></index> and the index value.
<struct> <name><MyName></name>
<var>…
</var>
</struct>
ARRAY
Array of any one of the types in this table. Each ele-
ment in an array is self-descriptive. The type of the
parent is the type of the entire array. Type is optional
and generally not included when the array is an array
of structures. Current Length is optional. Array can
contain a series of items, a series of structures or a
series of array. Elements of an array should define an
index instead of a name. This is the commonly used
format for structures but all types are allowed.
<array>
<name><MyName></name>
<type>Type</type>
<curLength>100</curLength>
<var>
<index>1</index>…
</var></array>
...or...
<array>
<name><MyName></name>
<type>Type</type>
<curLength>100</curLength>
<struct>
<index>1</index>…
</struct>
</array>
... or...
<array>
<name><MyName></name>
<type>Type</type>
<curLength>100</curLength>
<array> <index>1</index>…
</array>
</array>
Array -
String
encoding
(Strings)
Array of unsigned characters. Data is encoded using
String encoding. Type and length are optional.
<array>
<name><MyName></name>
<type>Type</type>
<curLength>100</curLength>
<string>MyString</string>
</array>
Summary of Contents for NETLINX PROGRAMMING LANGUAGE
Page 15: ...Table of Contents xiii NetLinx Programming Language Reference Guide...
Page 16: ...xiv NetLinx Programming Language Reference Guide Table of Contents...
Page 18: ...Introduction 2 NetLinx Programming Language Reference Guide...
Page 76: ...Language Elements 60 NetLinx Programming Language Reference Guide...
Page 106: ...Combining Devices Levels and Channels 90 NetLinx Programming Language Reference Guide...
Page 112: ...Master To Master M2M 96 NetLinx Programming Language Reference Guide...
Page 182: ...Reserved Identifiers 166 NetLinx Programming Language Reference Guide...
Page 204: ...NetLinx UniCode Functions 188 NetLinx Programming Language Reference Guide...
Page 244: ...Appendix B Glossary 228 NetLinx Programming Language Reference Guide...
Page 245: ...Appendix B Glossary 229 NetLinx Programming Language Reference Guide...