Blame doc/xmllint.1

Packit 423ecb
'\" t
Packit 423ecb
.\"     Title: xmllint
Packit 423ecb
.\"    Author: John Fleck <jfleck@inkstain.net>
Packit 423ecb
.\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
Packit 423ecb
.\"      Date: $Date$
Packit 423ecb
.\"    Manual: xmllint Manual
Packit 423ecb
.\"    Source: libxml2
Packit 423ecb
.\"  Language: English
Packit 423ecb
.\"
Packit 423ecb
.TH "XMLLINT" "1" "$Date$" "libxml2" "xmllint Manual"
Packit 423ecb
.\" -----------------------------------------------------------------
Packit 423ecb
.\" * Define some portability stuff
Packit 423ecb
.\" -----------------------------------------------------------------
Packit 423ecb
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit 423ecb
.\" http://bugs.debian.org/507673
Packit 423ecb
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
Packit 423ecb
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Packit 423ecb
.ie \n(.g .ds Aq \(aq
Packit 423ecb
.el       .ds Aq '
Packit 423ecb
.\" -----------------------------------------------------------------
Packit 423ecb
.\" * set default formatting
Packit 423ecb
.\" -----------------------------------------------------------------
Packit 423ecb
.\" disable hyphenation
Packit 423ecb
.nh
Packit 423ecb
.\" disable justification (adjust text to left margin only)
Packit 423ecb
.ad l
Packit 423ecb
.\" -----------------------------------------------------------------
Packit 423ecb
.\" * MAIN CONTENT STARTS HERE *
Packit 423ecb
.\" -----------------------------------------------------------------
Packit 423ecb
.SH "NAME"
Packit 423ecb
xmllint \- command line XML tool
Packit 423ecb
.SH "SYNOPSIS"
Packit 423ecb
.HP \w'\fBxmllint\fR\ 'u
Packit 423ecb
\fBxmllint\fR [\fB\-\-version\fR | \fB\-\-debug\fR | \fB\-\-shell\fR | \fB\-\-xpath\ "\fR\fB\fIXPath_expression\fR\fR\fB"\fR | \fB\-\-debugent\fR | \fB\-\-copy\fR | \fB\-\-recover\fR | \fB\-\-noent\fR | \fB\-\-noout\fR | \fB\-\-nonet\fR | \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR | \fB\-\-load\-trace\fR | \fB\-\-htmlout\fR | \fB\-\-nowrap\fR | \fB\-\-valid\fR | \fB\-\-postvalid\fR | \fB\-\-dtdvalid\ \fR\fB\fIURL\fR\fR | \fB\-\-dtdvalidfpi\ \fR\fB\fIFPI\fR\fR | \fB\-\-timing\fR | \fB\-\-output\ \fR\fB\fIFILE\fR\fR | \fB\-\-repeat\fR | \fB\-\-insert\fR | \fB\-\-compress\fR | \fB\-\-html\fR | \fB\-\-xmlout\fR | \fB\-\-push\fR | \fB\-\-memory\fR | \fB\-\-maxmem\ \fR\fB\fINBBYTES\fR\fR | \fB\-\-nowarning\fR | \fB\-\-noblanks\fR | \fB\-\-nocdata\fR | \fB\-\-format\fR | \fB\-\-encode\ \fR\fB\fIENCODING\fR\fR | \fB\-\-dropdtd\fR | \fB\-\-nsclean\fR | \fB\-\-testIO\fR | \fB\-\-catalogs\fR | \fB\-\-nocatalogs\fR | \fB\-\-auto\fR | \fB\-\-xinclude\fR | \fB\-\-noxincludenode\fR | \fB\-\-loaddtd\fR | \fB\-\-dtdattr\fR | \fB\-\-stream\fR | \fB\-\-walker\fR | \fB\-\-pattern\ \fR\fB\fIPATTERNVALUE\fR\fR | \fB\-\-chkregister\fR | \fB\-\-relaxng\ \fR\fB\fISCHEMA\fR\fR | \fB\-\-schema\ \fR\fB\fISCHEMA\fR\fR | \fB\-\-c14n\fR] {\fIXML\-FILE(S)\fR... | \-}
Packit 423ecb
.HP \w'\fBxmllint\fR\ 'u
Packit 423ecb
\fBxmllint\fR \fB\-\-help\fR
Packit 423ecb
.SH "DESCRIPTION"
Packit 423ecb
.PP
Packit 423ecb
The
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
program parses one or more
Packit 423ecb
XML
Packit 423ecb
files, specified on the command line as
Packit 423ecb
\fIXML\-FILE\fR
Packit 423ecb
(or the standard input if the filename provided is
Packit 423ecb
\fB\-\fR
Packit 423ecb
)\&. It prints various types of output, depending upon the options selected\&. It is useful for detecting errors both in
Packit 423ecb
XML
Packit 423ecb
code and in the
Packit 423ecb
XML
Packit 423ecb
parser itself\&.
Packit 423ecb
.PP
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
is included in
Packit 423ecb
\fBlibxml\fR(3)\&.
Packit 423ecb
.SH "OPTIONS"
Packit 423ecb
.PP
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
accepts the following options (in alphabetical order):
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-auto\fR
Packit 423ecb
.RS 4
Packit 423ecb
Generate a small document for testing purposes\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-catalogs\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the
Packit 423ecb
SGML
Packit 423ecb
catalog(s) from
Packit 423ecb
\fBSGML_CATALOG_FILES\fR\&. Otherwise
Packit 423ecb
XML
Packit 423ecb
catalogs starting from
Packit 423ecb
/etc/xml/catalog
Packit 423ecb
are used by default\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-chkregister\fR
Packit 423ecb
.RS 4
Packit 423ecb
Turn on node registration\&. Useful for developers testing
Packit 423ecb
\fBlibxml\fR(3)
Packit 423ecb
node tracking code\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-compress\fR
Packit 423ecb
.RS 4
Packit 423ecb
Turn on
Packit 423ecb
\fBgzip\fR(1)
Packit 423ecb
compression of output\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-copy\fR
Packit 423ecb
.RS 4
Packit 423ecb
Test the internal copy implementation\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-c14n\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the W3C
Packit 423ecb
XML
Packit 423ecb
Canonicalisation (C14N) to serialize the result of parsing to
Packit 423ecb
stdout\&. It keeps comments in the result\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-dtdvalid \fR\fB\fIURL\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the
Packit 423ecb
DTD
Packit 423ecb
specified by an
Packit 423ecb
\fIURL\fR
Packit 423ecb
for validation\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-dtdvalidfpi \fR\fB\fIFPI\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the
Packit 423ecb
DTD
Packit 423ecb
specified by a Formal Public Identifier
Packit 423ecb
\fIFPI\fR
Packit 423ecb
for validation, note that this will require a catalog exporting that Formal Public Identifier to work\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-debug\fR
Packit 423ecb
.RS 4
Packit 423ecb
Parse a file and output an annotated tree of the in\-memory version of the document\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-debugent\fR
Packit 423ecb
.RS 4
Packit 423ecb
Debug the entities defined in the document\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-dropdtd\fR
Packit 423ecb
.RS 4
Packit 423ecb
Remove
Packit 423ecb
DTD
Packit 423ecb
from output\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-dtdattr\fR
Packit 423ecb
.RS 4
Packit 423ecb
Fetch external
Packit 423ecb
DTD
Packit 423ecb
and populate the tree with inherited attributes\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-encode \fR\fB\fIENCODING\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Output in the given encoding\&. Note that this works for full document not fragments or result from XPath queries\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-format\fR
Packit 423ecb
.RS 4
Packit 423ecb
Reformat and reindent the output\&. The
Packit 423ecb
\fBXMLLINT_INDENT\fR
Packit 423ecb
environment variable controls the indentation\&. The default value is two spaces " ")\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-help\fR
Packit 423ecb
.RS 4
Packit 423ecb
Print out a short usage summary for
Packit 423ecb
\fBxmllint\fR\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-html\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the
Packit 423ecb
HTML
Packit 423ecb
parser\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-htmlout\fR
Packit 423ecb
.RS 4
Packit 423ecb
Output results as an
Packit 423ecb
HTML
Packit 423ecb
file\&. This causes
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
to output the necessary
Packit 423ecb
HTML
Packit 423ecb
tags surrounding the result tree output so the results can be displayed/viewed in a browser\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-insert\fR
Packit 423ecb
.RS 4
Packit 423ecb
Test for valid insertions\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-loaddtd\fR
Packit 423ecb
.RS 4
Packit 423ecb
Fetch an external
Packit 423ecb
DTD\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-load\-trace\fR
Packit 423ecb
.RS 4
Packit 423ecb
Display all the documents loaded during the processing to
Packit 423ecb
stderr\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-maxmem \fR\fB\fINNBYTES\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Test the parser memory support\&.
Packit 423ecb
\fINNBYTES\fR
Packit 423ecb
is the maximum number of bytes the library is allowed to allocate\&. This can also be used to make sure batch processing of
Packit 423ecb
XML
Packit 423ecb
files will not exhaust the virtual memory of the server running them\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-memory\fR
Packit 423ecb
.RS 4
Packit 423ecb
Parse from memory\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-noblanks\fR
Packit 423ecb
.RS 4
Packit 423ecb
Drop ignorable blank spaces\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-nocatalogs\fR
Packit 423ecb
.RS 4
Packit 423ecb
Do not use any catalogs\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-nocdata\fR
Packit 423ecb
.RS 4
Packit 423ecb
Substitute CDATA section by equivalent text nodes\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-noent\fR
Packit 423ecb
.RS 4
Packit 423ecb
Substitute entity values for entity references\&. By default,
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
leaves entity references in place\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-nonet\fR
Packit 423ecb
.RS 4
Packit 423ecb
Do not use the Internet to fetch
Packit 423ecb
DTDs or entities\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-noout\fR
Packit 423ecb
.RS 4
Packit 423ecb
Suppress output\&. By default,
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
outputs the result tree\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-nowarning\fR
Packit 423ecb
.RS 4
Packit 423ecb
Do not emit warnings from the parser and/or validator\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-nowrap\fR
Packit 423ecb
.RS 4
Packit 423ecb
Do not output
Packit 423ecb
HTML
Packit 423ecb
doc wrapper\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-noxincludenode\fR
Packit 423ecb
.RS 4
Packit 423ecb
Do XInclude processing but do not generate XInclude start and end nodes\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-nsclean\fR
Packit 423ecb
.RS 4
Packit 423ecb
Remove redundant namespace declarations\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-output \fR\fB\fIFILE\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Define a file path where
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
will save the result of parsing\&. Usually the programs build a tree and save it on
Packit 423ecb
stdout, with this option the result
Packit 423ecb
XML
Packit 423ecb
instance will be saved onto a file\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the (space\- or colon\-separated) list of filesystem paths specified by
Packit 423ecb
\fIPATHS\fR
Packit 423ecb
to load
Packit 423ecb
DTDs or entities\&. Enclose space\-separated lists by quotation marks\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-pattern \fR\fB\fIPATTERNVALUE\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Used to exercise the pattern recognition engine, which can be used with the reader interface to the parser\&. It allows to select some nodes in the document based on an XPath (subset) expression\&. Used for debugging\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-postvalid\fR
Packit 423ecb
.RS 4
Packit 423ecb
Validate after parsing has completed\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-push\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use the push mode of the parser\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-recover\fR
Packit 423ecb
.RS 4
Packit 423ecb
Output any parsable portions of an invalid document\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-relaxng \fR\fB\fISCHEMA\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use RelaxNG file named
Packit 423ecb
\fISCHEMA\fR
Packit 423ecb
for validation\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-repeat\fR
Packit 423ecb
.RS 4
Packit 423ecb
Repeat 100 times, for timing or profiling\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-schema \fR\fB\fISCHEMA\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use a W3C
Packit 423ecb
XML
Packit 423ecb
Schema file named
Packit 423ecb
\fISCHEMA\fR
Packit 423ecb
for validation\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-shell\fR
Packit 423ecb
.RS 4
Packit 423ecb
Run a navigating shell\&. Details on available commands in shell mode are below (see
Packit 423ecb
the section called \(lqSHELL COMMANDS\(rq)\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-xpath "\fR\fB\fIXPath_expression\fR\fR\fB"\fR
Packit 423ecb
.RS 4
Packit 423ecb
Run an XPath expression given as argument and print the result\&. In case of a nodeset result, each node in the node set is serialized in full in the output\&. In case of an empty node set the "XPath set is empty" result will be shown and an error exit code will be returned\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-stream\fR
Packit 423ecb
.RS 4
Packit 423ecb
Use streaming
Packit 423ecb
API
Packit 423ecb
\- useful when used in combination with
Packit 423ecb
\fB\-\-relaxng\fR
Packit 423ecb
or
Packit 423ecb
\fB\-\-valid\fR
Packit 423ecb
options for validation of files that are too large to be held in memory\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-testIO\fR
Packit 423ecb
.RS 4
Packit 423ecb
Test user input/output support\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-timing\fR
Packit 423ecb
.RS 4
Packit 423ecb
Output information about the time it takes
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
to perform the various steps\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-valid\fR
Packit 423ecb
.RS 4
Packit 423ecb
Determine if the document is a valid instance of the included Document Type Definition (DTD)\&. A
Packit 423ecb
DTD
Packit 423ecb
to be validated against also can be specified at the command line using the
Packit 423ecb
\fB\-\-dtdvalid\fR
Packit 423ecb
option\&. By default,
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
also checks to determine if the document is well\-formed\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-version\fR
Packit 423ecb
.RS 4
Packit 423ecb
Display the version of
Packit 423ecb
\fBlibxml\fR(3)
Packit 423ecb
used\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-walker\fR
Packit 423ecb
.RS 4
Packit 423ecb
Test the walker module, which is a reader interface but for a document tree, instead of using the reader
Packit 423ecb
API
Packit 423ecb
on an unparsed document it works on an existing in\-memory tree\&. Used for debugging\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-xinclude\fR
Packit 423ecb
.RS 4
Packit 423ecb
Do XInclude processing\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB\-\-xmlout\fR
Packit 423ecb
.RS 4
Packit 423ecb
Used in conjunction with
Packit 423ecb
\fB\-\-html\fR\&. Usually when
Packit 423ecb
HTML
Packit 423ecb
is parsed the document is saved with the
Packit 423ecb
HTML
Packit 423ecb
serializer\&. But with this option the resulting document is saved with the
Packit 423ecb
XML
Packit 423ecb
serializer\&. This is primarily used to generate
Packit 423ecb
XHTML
Packit 423ecb
from
Packit 423ecb
HTML
Packit 423ecb
input\&.
Packit 423ecb
.RE
Packit 423ecb
.SH "SHELL COMMANDS"
Packit 423ecb
.PP
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
offers an interactive shell mode invoked with the
Packit 423ecb
\fB\-\-shell\fR
Packit 423ecb
command\&. Available commands in shell mode include (in alphabetical order):
Packit 423ecb
.PP
Packit 423ecb
\fBbase\fR
Packit 423ecb
.RS 4
Packit 423ecb
Display
Packit 423ecb
XML
Packit 423ecb
base of the node\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBbye\fR
Packit 423ecb
.RS 4
Packit 423ecb
Leave the shell\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBcat \fR\fB\fINODE\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Display the given node or the current one\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBcd \fR\fB\fIPATH\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Change the current node to the given path (if unique) or root if no argument is given\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBdir \fR\fB\fIPATH\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Dumps information about the node (namespace, attributes, content)\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBdu \fR\fB\fIPATH\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Show the structure of the subtree under the given path or the current node\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBexit\fR
Packit 423ecb
.RS 4
Packit 423ecb
Leave the shell\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBhelp\fR
Packit 423ecb
.RS 4
Packit 423ecb
Show this help\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBfree\fR
Packit 423ecb
.RS 4
Packit 423ecb
Display memory usage\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBload \fR\fB\fIFILENAME\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Load a new document with the given filename\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBls \fR\fB\fIPATH\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
List contents of the given path or the current directory\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBpwd\fR
Packit 423ecb
.RS 4
Packit 423ecb
Display the path to the current node\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBquit\fR
Packit 423ecb
.RS 4
Packit 423ecb
Leave the shell\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBsave \fR\fB\fIFILENAME\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Save the current document to the given filename or to the original name\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBvalidate\fR
Packit 423ecb
.RS 4
Packit 423ecb
Check the document for errors\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBwrite \fR\fB\fIFILENAME\fR\fR
Packit 423ecb
.RS 4
Packit 423ecb
Write the current node to the given filename\&.
Packit 423ecb
.RE
Packit 423ecb
.SH "ENVIRONMENT"
Packit 423ecb
.PP
Packit 423ecb
\fBSGML_CATALOG_FILES\fR
Packit 423ecb
.RS 4
Packit 423ecb
SGML
Packit 423ecb
catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the
Packit 423ecb
\fBSGML_CATALOG_FILES\fR
Packit 423ecb
environment variable to a list of catalogs\&. An empty one should deactivate loading the default
Packit 423ecb
/etc/sgml/catalog
Packit 423ecb
catalog\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBXML_CATALOG_FILES\fR
Packit 423ecb
.RS 4
Packit 423ecb
XML
Packit 423ecb
catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the
Packit 423ecb
\fBXML_CATALOG_FILES\fR
Packit 423ecb
environment variable to a list of catalogs\&. An empty one should deactivate loading the default
Packit 423ecb
/etc/xml/catalog
Packit 423ecb
catalog\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBXML_DEBUG_CATALOG\fR
Packit 423ecb
.RS 4
Packit 423ecb
Setting the environment variable
Packit 423ecb
\fBXML_DEBUG_CATALOG\fR
Packit 423ecb
to
Packit 423ecb
\fInon\-zero\fR
Packit 423ecb
using the
Packit 423ecb
\fBexport\fR
Packit 423ecb
command outputs debugging information related to catalog operations\&.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBXMLLINT_INDENT\fR
Packit 423ecb
.RS 4
Packit 423ecb
Setting the environment variable
Packit 423ecb
\fBXMLLINT_INDENT\fR
Packit 423ecb
controls the indentation\&. The default value is two spaces " "\&.
Packit 423ecb
.RE
Packit 423ecb
.SH "DIAGNOSTICS"
Packit 423ecb
.PP
Packit 423ecb
\fBxmllint\fR
Packit 423ecb
return codes provide information that can be used when calling it from scripts\&.
Packit 423ecb
.PP
Packit 423ecb
\fB0\fR
Packit 423ecb
.RS 4
Packit 423ecb
No error
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB1\fR
Packit 423ecb
.RS 4
Packit 423ecb
Unclassified
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB2\fR
Packit 423ecb
.RS 4
Packit 423ecb
Error in
Packit 423ecb
DTD
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB3\fR
Packit 423ecb
.RS 4
Packit 423ecb
Validation error
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB4\fR
Packit 423ecb
.RS 4
Packit 423ecb
Validation error
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB5\fR
Packit 423ecb
.RS 4
Packit 423ecb
Error in schema compilation
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB6\fR
Packit 423ecb
.RS 4
Packit 423ecb
Error writing output
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB7\fR
Packit 423ecb
.RS 4
Packit 423ecb
Error in pattern (generated when
Packit 423ecb
\fB\-\-pattern\fR
Packit 423ecb
option is used)
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB8\fR
Packit 423ecb
.RS 4
Packit 423ecb
Error in Reader registration (generated when
Packit 423ecb
\fB\-\-chkregister\fR
Packit 423ecb
option is used)
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fB9\fR
Packit 423ecb
.RS 4
Packit 423ecb
Out of memory error
Packit 423ecb
.RE
Packit 423ecb
.SH "SEE ALSO"
Packit 423ecb
.PP
Packit 423ecb
\fBlibxml\fR(3)
Packit 423ecb
.PP
Packit 423ecb
More information can be found at
Packit 423ecb
.sp
Packit 423ecb
.RS 4
Packit 423ecb
.ie n \{\
Packit 423ecb
\h'-04'\(bu\h'+03'\c
Packit 423ecb
.\}
Packit 423ecb
.el \{\
Packit 423ecb
.sp -1
Packit 423ecb
.IP \(bu 2.3
Packit 423ecb
.\}
Packit 423ecb
\fBlibxml\fR(3)
Packit 423ecb
web page
Packit 423ecb
\m[blue]\fB\%http://www.xmlsoft.org/\fR\m[]
Packit 423ecb
.RE
Packit 423ecb
.sp
Packit 423ecb
.RS 4
Packit 423ecb
.ie n \{\
Packit 423ecb
\h'-04'\(bu\h'+03'\c
Packit 423ecb
.\}
Packit 423ecb
.el \{\
Packit 423ecb
.sp -1
Packit 423ecb
.IP \(bu 2.3
Packit 423ecb
.\}
Packit 423ecb
W3C
Packit 423ecb
XSLT
Packit 423ecb
page
Packit 423ecb
\m[blue]\fB\%http://www.w3.org/TR/xslt\fR\m[]
Packit 423ecb
.RE
Packit 423ecb
.sp
Packit 423ecb
.SH "AUTHORS"
Packit 423ecb
.PP
Packit 423ecb
\fBJohn Fleck\fR <\&jfleck@inkstain\&.net\&>
Packit 423ecb
.RS 4
Packit 423ecb
Author.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBZiying Sherwin\fR <\&sherwin@nlm\&.nih\&.gov\&>
Packit 423ecb
.RS 4
Packit 423ecb
Author.
Packit 423ecb
.RE
Packit 423ecb
.PP
Packit 423ecb
\fBHeiko Rupp\fR <\&hwr@pilhuhn\&.de\&>
Packit 423ecb
.RS 4
Packit 423ecb
Author.
Packit 423ecb
.RE
Packit 423ecb
.SH "COPYRIGHT"
Packit 423ecb
.br
Packit 423ecb
Copyright \(co 2001, 2004
Packit 423ecb
.br