XPort Pro™ Command Reference
64
4
4
:
:
C
C
o
o
n
n
f
f
i
i
g
g
u
u
r
r
a
a
t
t
i
i
o
o
n
n
U
U
s
s
i
i
n
n
g
g
X
X
M
M
L
L
The device server provides an Extensible Markup Language (XML) interface that you can
use to configure device server devices. Every configuration setting that can be issued
from the device server Web Manager and CLI can be specified using XML.
The 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, FTP, or the device server filesystem. An XCR can contain many
configuration settings or just a few. For example, it might change all of the configurable
parameters for a 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 device server devices.
XML Configuration Record Document Type Definition (DTD)
An XML DTD is a description of the structure and content of an XML document. It can be
used to verify that a received document is valid.
XML Configuration Records are exported using the following DTD:
<!DOCTYPE configrecord [
<!ELEMENT configrecord (conf)>
<!ELEMENT configgroup (con)>
<!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 device server DTD states 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.