HP XP7 Command View Advanced Edition CLI Reference Guide (TK981-96006, May 2014)
<?xml version="1.0" encoding="UTF-8"?>[CRLF]
<!DOCTYPE DvMCLIResult SYSTEM "CLI-DTD-URL.dtd">[CRLF]
<DvMCLIResult version="version"><CommandResult command="GetStorageArray">
<StorageArray attr-name="attr-value" attr-name="attr-value" ... >
</StorageArray> ... </CommandResult></DvMCLIResult>
Legend:
attr-name: Entry name
attr-value: Value
[CRLF]: Line feed code
When an execution result is output in XML format, an XML declaration, a DOCTYPE declaration, and
XML elements are output.
First line:
An XML declaration and a line feed code are output.
Device Manager CLI uses UTF-8 encoding to output the execution result according to the XML 1.0
specifications recommended by W3C.
Second line:
A DOCTYPE declaration and a line feed 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.
To include the DOCTYPE declaration and line feed code in the execution results, you must specify
a DTD in the properties file.
Third line:
XML elements are output.
The DvMCLIResult element, which is the root element of the XML-formatted output, indicates
the execution result of Device Manager CLI. The version attribute of the DvMCLIResult element
indicates the Device Manager CLI version.
The CommandResult element indicates the Device Manager CLI command execution result.
Related topics
• Property for specifying the DTD file (dtd), page 533
• The DTD used for outputting execution results in XML format (GetStorageArray or GetVStorage-
Array), page 556
The DTD used for outputting execution results in XML format
(GetStorageArray or GetVStorageArray)
This section describes the DTD used for outputting execution results of the GetStorageArray (or
GetVStorageArray) command in XML format. If a DTD file that has been created in advance is
specified in the properties file, the path of the DTD file is displayed in the command execution results
in the DOCTYPE declaration. You cannot specify the DTD file from the command line.
The DTD used for outputting execution results in XML format is as follows:
<!ELEMENT DvMCLIResult (CommandResult)>
<!ELEMENT CommandResult (StorageArray)*>
<!ELEMENT CommandResult (VStorageArray)*>
Output format of execution results of the GetStorageArray (GetVStorageArray) command556