# xml list > List a directory's contents in XML format. > More information: . - List the current directory's contents to an XML document: `xml list >{{path/to/dir_list.xml}}` - List the specified directory's contents to an XML document: `xml list {{path/to/directory}} >{{path/to/dir_list.xml}}` - Display help for the `list` subcommand: `xml list --help`