Lantronix EDS3000PS Command Reference - Page 15

Configuration Using XML

Page 15 highlights

4: Configuration Using XML The EDS3000 device server provides an XML interface that you can use to configure EDS3000 device servers. Every configuration setting that can be issued from the EDS's Web Manager interface and CLI can be specified using XML. The EDS3000 device server 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 an EDS3000 device server, 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 EDS3000 device servers. 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 EDS3000 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. EDS3000 Command Reference 15

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83

EDS3000 Command Reference
15
4:
Configuration Using XML
The EDS3000 device server provides an XML interface that you can use to configure EDS3000
device servers. Every configuration setting that can be issued from the EDS’s Web Manager
interface and CLI can be specified using XML.
The EDS3000 device server 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 an EDS3000 device server, 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 EDS3000 device servers.
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
<!DOCTYPE configrecord [
<!ELEMENT configrecord (configgroup+)>
<!ELEMENT configgroup (configitem+,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 configitem instance CDATA #IMPLIED>
<!ATTLIST value name CDATA #IMPLIED>
]>
The EDS3000 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.