Retrieving more information

Beside the possibility to browse the DOM tree and list some parts of it (as described in Navigation), XSH provides commands to obtain other information related to open documents as well as the XSH interpreter itself. These commands are listed bellow.

Related Commands

count

calculate a given XPath expression and enumerate node-lists

defs

list all user-defined routines (macros)

doc-info

displays various information about a document

documents

display a list of open files

dtd

show document's DTD

enc

show document's original character encoding

help

on-line documentation

locate

show a given node location (as a cannonical XPath)

ls

list a given part of a document as XML

namespaces

List namespaces in current scope (or in scope of given nodes)

options

list current settings using XSH syntax

print

print given stuff on standard console output

pwd

show current context node location (as a cannonical XPath)

valid

check if the document is valid (according to a DTD, RelaxNG, or XSD schemas)

validate

validate a document against a DTD, RelaxNG, or XSD schemas

variables

display a list of defined variables

version

show version information