The list command
Syntax:
list expressionOutputs a representation of the result of the expression.
If a node is selected, it is shown as a path (for example DOC/SECTION[3]/PARA[2]
), preceded
by a line number if one is available.
If an atomic value is selected, its string value is displayed.
Line numbers are available in documents loaded directly from filestore, but not
in documents constructed using commands such as rename
or delete
.
Example
Given a source document:
<cities> <city name="Berlin" country="DE"/> <city name="Paris" country="FR"/> <city name="Rome" country="IT"/> </cities>The command:
list //city[@name='Paris']displays:
/cities/city[2]