Displaying Output in XML Tag Format

To display command output in XML tag format:

The following example displays the show cli directory command output as XML tags:

user@host> show cli directory | display xml 
<?xml version="1.0"?>
<output>
Current directory: /root
</output>

Related Documentation