EDS-MD® Wired IoT Device Gateway Command Reference
15
4: Configuration Using XML
The EDS-MD wired IoT device gateway provides an Extensible Markup Language (XML) interface
that you can use to configure wired IoT device gateways. Every configuration setting that can be
issued from the Web Manager and CLI can be specified using XML.
The wired IoT device gateway can import and export configuration settings as an XML document
known as an XML Configuration Record (XCR). An XCR can be imported or exported via the CLI,
a Web browser, FTP, or the wired IoT device gateway file system. An XCR can contain many
configuration settings or just a few. For example, it might change all of the configurable
parameters for a wired IoT device gateway, or it may only change the baud rate for a single serial
line. Using XCRs is a straightforward and flexible way to manage the configuration of multiple
wired IoT device gateways.
XML Configuration Record Document Type Definition
An XML document type definition (DTD) is a description of the structure and content of an XML
document. It verifies that a document is valid. XCRs are exported using the DTD as shown in
.
Figure 4-1 DTD for XCRs
<!DOCTYPE configrecord [
<!ELEMENT configrecord (conf)>
<!ELEMENT configgroup (con,configgroup*)>
<!ELEMENT configitem (value+)>
<!ELEMENT value (#PCDATA)>
<!ATTLIST configrecord version CDATA #IMPLIED>
<!ATTLIST configgroup name CDATA #IMPLIED>
<!ATTLIST configgroup instance CDATA #IMPLIED>
<!ATTLIST configitem name CDATA #IMPLIED>
<!ATTLIST value name CDATA #IMPLIED>
]>
The EDS-MD 4/8/16 wired IoT device gateway DTD rules state the following:
The XML document element is a
<configrecord>
element. This is the root element.
A
<configrecord>
must have one or more
<configgroup>
elements and can have a
version attribute.
A
<configgroup>
must have one or more
<configitem>
elements and can have name
and instance attributes.
A
<configitem>
element must have one or more <value> elements and can have a name
attribute.
A
<value>
element can have only data and can have a name attribute.
The name attribute identifies a group, item, or value. It is always a quoted string.
The instance attribute identifies the specific option, like the serial port number. The "instance"
attribute is always a quoted string.