R E V I E W D R A F T - C I S C O C O N F I D E N T I A L
Chapter 9 Configuring the XML Interface
Enabling the Display of Raw XML Request show Command Output in XML Format
9-24
Cisco 4700 Series Application Control Engine Appliance Administration Guide
OL-11157-01
Enabling the Display of Raw XML Request show
Command Output in XML Format
By default, XML responses will automatically appear in XML format if the
corresponding CLI
show
command output supports the XML format. However, if
you are running commands on the CLI console or you are running raw XML
responses from NMS, the XML responses appear in regular CLI display format.
You can enable the display of raw XML request
show
command output in XML
format by performing one of the following actions:
•
Specifying the
xml-show on
command in Exec mode from the CLI, or
•
Including the
xml-show on
command in the raw XML request itself (CLI
commands included in an XML wrapper).
Specification of the
xml-show on
command is not required if you are running true
XML (as shown in the example below).
For details on the
show
command output supported in XML format, consult the
ACE DTD file, ace_appliance.dtd, that is included as part of the software image
(see the
“Accessing the ACE DTD File”
section). The ACE DTD File contains the
information on the XML attributes for those
show
commands whose output
supports XML format.
For example, if you specify the
show interface vlan 10
command, the DTD for
the
show interface
command appears as follows:
<!--
interface-number is req for show-type vlan | bvi.
interface-number is between 1 and 4095 for vlan and 8191 for bvi.
-->
<!ENTITY % show-interface
"interface-type (vlan | bvi) #IMPLIED
interface-number CDATA #IMPLIED”
>
The XML representation of the
show interface
command appears as follows:
<show_interface interface-type='vlan' interface-number='10'/>