4-10 specifying a dtd – HP XP Command View Advanced Edition Software User Manual

Page 301

Advertising
background image




Using the Device Manager properties file



301

When an execution result is output in XML format, an XML declaration, a DOCTYPE declaration,
and XML elements are output.

XML declaration (see

Figure 5-2

(1))

In the first line of the execution result, an XML declaration and a linefeed code ([CRLF]) are
output.

NOTE:

In Device Manager CLI, the execution result is output in UTF-8 encoding according to the

XML1.0 Specifications recommended by W3C.

DOCTYPE declaration (see

Figure 5-2

(2))

In the second line of the execution result, a DOCTYPE declaration and a linefeed code are
output.

In the DOCTYPE declaration, the URI (Uniform Resource Identifier) of the DTD (Document
Type Definition) specified in the properties file is output.

NOTE:

To output a DOCTYPE declaration and an immediately subsequent linefeed code in the

execution results, you need to specify a DTD in the properties file. For details about specifying a
DTD, see section

5-4-10

.

XML elements (see

Figure 5-2

(3))

In the third line of the execution result, XML elements are output.

DvMCLIResult

, a root element of XML-format output, indicates the execution result of Device

Manager CLI. The Device Manager CLI version is output as the version attribute of the
DvMCLIResult

element.

The CommandResult element indicates the execution result of the Device Manager CLI
command.

5-4-10 Specifying a DTD

To use a DTD when you output the execution results of the GetStorageArray command in XML
format, specify the URI of the DTD in the dtd property of the properties file
(hdvmcli.properties). The following shows an example that specifies D:/dtd/cli.dtd as the
URI of the DTD.

dtd=D:/dtd/cli.dtd

NOTE:

Device Manager CLI does not check whether the specified DTD URI is a well-formed URI,

nor does it perform any error processing.

NOTE:

You must create the DTD to be used by Device Manager CLI. For details about creating a

DTD, see

Appendix A

.

NOTE:

You cannot specify a DTD from the command line.

Advertising