ls xpath [expression]




List the XML representation of all nodes matching xpath. The optional expression argument may be provided to specify the depth of XML tree listing. If negative, the tree will be listed to unlimited depth. If the expression results in the word fold, elements marked with the fold command are folded, i.e. listed only to a certain depth (this feature is still EXPERIMENTAL!).

Unless in quiet mode, this command prints also number of nodes matched on stderr.

If the xpath parameter is omitted, current context node is listed to the depth of 1.

See Also

count, fold, unfold