The show command

Syntax:

show [expression]

Outputs a representation of the result of the expression.

If a node is selected, it is shown as an XML serialization of the content of the node.

If an atomic value is selected, its string value is displayed.

The expression may be omitted, and defaults to /, which displays the current document.

The document is always shown with indentation enabled, so it is not necessarily the same as the document that will be written to filestore by the save command.

Examples

show

Displays the current document, with indentation.

show //TITLE

Displays selected elements, for example:

<title>Pride and Prejudice</title> <title>Sense and Sensibility</title> <title>Emma</title> <title>Northanger Abbey</title>show count(//TITLE), sort(//TITLE)

Displays the result of an arbitrary XPath expression.