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.
calculate a given XPath expression and enumerate node-lists
list all user-defined routines (macros)
displays various information about a document
display a list of open files
show document's DTD
show document's original character encoding
on-line documentation
show a given node location (as a cannonical XPath)
list a given part of a document as XML
List namespaces in current scope (or in scope of given nodes)
list current settings using XSH syntax
print given stuff on standard console output
show current context node location (as a cannonical XPath)
check if the document is valid (according to a DTD, RelaxNG, or XSD schemas)
validate a document against a DTD, RelaxNG, or XSD schemas
display a list of defined variables
show version information