Lantronix SGX 5150 IoT Device Gateway SGX 5150 Command Reference - Page 16
: Configuration Using XML, XML Configuration Record Document Type Definition
View all Lantronix SGX 5150 IoT Device Gateway manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 16 highlights
4: Configuration Using XML The SGX 5150 IoT device gateway provides an XML interface that you can use to configure SGX 5150 IoT device gateways. Every configuration setting that can be issued from the gateway's Web Manager interface and CLI can be specified using XML. The SGX 5150 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, or FTP. An XCR can contain many configuration settings or just a few. For example, it might change all of the configurable parameters for a SGX 5150 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 SGX 5150 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-4 DTD for XCRs. Figure 4-4 DTD for XCRs ]> The SGX 5150 DTD rules state the following: The XML document element is a element. This is the root element. A must have one or more elements and can have a version attribute. A must have one or more elements and can have name and instance attributes. A element must have one or more elements and can have a name attribute. A 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. SGXTM 5150 IoT Device Gateway Command Reference 16