2013-03-27 11:43:41 +08:00
'\" t
. \" Title: xmllint
. \" Author: John Fleck <jfleck@inkstain.net>
2013-12-11 00:01:38 +08:00
. \" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/>
2013-03-27 11:43:41 +08:00
. \" Date: $Date$
. \" Manual: xmllint Manual
. \" Source: libxml2
. \" Language: English
. \"
.TH "XMLLINT" "1" "$Date$" "libxml2" "xmllint Manual"
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
2006-04-06 08:22:51 +00:00
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
2013-03-27 11:43:41 +08:00
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
2006-04-06 08:22:51 +00:00
.SH "NAME"
2001-10-27 20:14:01 +00:00
xmllint \- command line XML tool
.SH "SYNOPSIS"
2013-03-27 11:43:41 +08:00
.HP \w '\fBxmllint\fR\ 'u
\fB xmllint\fR [\fB \- \- version\fR | \fB \- \- debug\fR | \fB \- \- shell\fR | \fB \- \- xpath\ "\fR \fB \fI XPath_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 \fI PATH(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 \fI URL\fR \fR | \fB \- \- dtdvalidfpi\ \fR \fB \fI FPI\fR \fR | \fB \- \- timing\fR | \fB \- \- output\ \fR \fB \fI FILE\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 \fI NBBYTES\fR \fR | \fB \- \- nowarning\fR | \fB \- \- noblanks\fR | \fB \- \- nocdata\fR | \fB \- \- format\fR | \fB \- \- encode\ \fR \fB \fI ENCODING\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 \fI PATTERNVALUE\fR \fR | \fB \- \- chkregister\fR | \fB \- \- relaxng\ \fR \fB \fI SCHEMA\fR \fR | \fB \- \- schema\ \fR \fB \fI SCHEMA\fR \fR | \fB \- \- c14n\fR ] {\fI XML\- FILE(S)\fR ... | \- }
.HP \w '\fBxmllint\fR\ 'u
2006-04-06 14:02:42 +00:00
\fB xmllint\fR \fB \- \- help\fR
2006-02-19 21:35:39 +00:00
.SH "DESCRIPTION"
2001-10-27 20:14:01 +00:00
.PP
2006-04-06 08:22:51 +00:00
The
\fB xmllint\fR
2006-08-21 08:34:11 +00:00
program parses one or more
XML
files, specified on the command line as
2006-04-06 08:22:51 +00:00
\fI XML\- FILE\fR
(or the standard input if the filename provided is
\fB \- \fR
2013-03-27 11:43:41 +08:00
)\& . It prints various types of output, depending upon the options selected\& . It is useful for detecting errors both in
2006-04-06 08:22:51 +00:00
XML
code and in the
XML
2013-03-27 11:43:41 +08:00
parser itself\& .
2001-10-27 20:14:01 +00:00
.PP
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
is included in
2013-03-27 11:43:41 +08:00
\fB libxml\fR (3)\& .
2001-10-27 20:14:01 +00:00
.SH "OPTIONS"
2006-02-20 08:58:51 +00:00
.PP
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
accepts the following options (in alphabetical order):
2013-03-27 11:43:41 +08:00
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- auto\fR
2013-03-27 11:43:41 +08:00
.RS 4
Generate a small document for testing purposes\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- catalogs\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
Use the
SGML
catalog(s) from
2013-03-27 11:43:41 +08:00
\fB SGML_CATALOG_FILES\fR \& . Otherwise
2006-08-21 08:34:11 +00:00
XML
catalogs starting from
2013-03-27 11:43:41 +08:00
/etc/xml/catalog
are used by default\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- chkregister\fR
2013-03-27 11:43:41 +08:00
.RS 4
Turn on node registration\& . Useful for developers testing
2006-04-06 08:22:51 +00:00
\fB libxml\fR (3)
2013-03-27 11:43:41 +08:00
node tracking code\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- compress\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Turn on
2006-08-21 08:34:11 +00:00
\fB gzip\fR (1)
2013-03-27 11:43:41 +08:00
compression of output\& .
.RE
.PP
2004-02-27 03:26:30 +00:00
\fB \- \- copy\fR
2013-03-27 11:43:41 +08:00
.RS 4
Test the internal copy implementation\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- c14n\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
Use the W3C
XML
Canonicalisation (C14N) to serialize the result of parsing to
2013-03-27 11:43:41 +08:00
stdout\& . It keeps comments in the result\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- dtdvalid \fR \fB \fI URL\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Use the
DTD
specified by an
\fI URL\fR
2013-03-27 11:43:41 +08:00
for validation\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- dtdvalidfpi \fR \fB \fI FPI\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Use the
DTD
2006-08-21 08:34:11 +00:00
specified by a Formal Public Identifier
2006-04-06 08:22:51 +00:00
\fI FPI\fR
2013-03-27 11:43:41 +08:00
for validation, note that this will require a catalog exporting that Formal Public Identifier to work\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- debug\fR
2013-03-27 11:43:41 +08:00
.RS 4
Parse a file and output an annotated tree of the in\- memory version of the document\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- debugent\fR
2013-03-27 11:43:41 +08:00
.RS 4
Debug the entities defined in the document\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- dropdtd\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Remove
DTD
2013-03-27 11:43:41 +08:00
from output\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- dtdattr\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Fetch external
DTD
2013-03-27 11:43:41 +08:00
and populate the tree with inherited attributes\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- encode \fR \fB \fI ENCODING\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
2013-12-11 00:01:38 +08:00
Output in the given encoding\& . Note that this works for full document not fragments or result from XPath queries\& .
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- format\fR
2013-03-27 11:43:41 +08:00
.RS 4
Reformat and reindent the output\& . The
2006-04-06 08:22:51 +00:00
\fB XMLLINT_INDENT\fR
2013-03-27 11:43:41 +08:00
environment variable controls the indentation\& . The default value is two spaces " ")\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- help\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Print out a short usage summary for
2013-03-27 11:43:41 +08:00
\fB xmllint\fR \& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- html\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Use the
HTML
2013-03-27 11:43:41 +08:00
parser\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- htmlout\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Output results as an
HTML
2013-03-27 11:43:41 +08:00
file\& . This causes
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
to output the necessary
HTML
2013-03-27 11:43:41 +08:00
tags surrounding the result tree output so the results can be displayed/viewed in a browser\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- insert\fR
2013-03-27 11:43:41 +08:00
.RS 4
Test for valid insertions\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- loaddtd\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
Fetch an external
2013-03-27 11:43:41 +08:00
DTD\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- load\- trace\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Display all the documents loaded during the processing to
2013-03-27 11:43:41 +08:00
stderr\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- maxmem \fR \fB \fI NNBYTES\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Test the parser memory support\& .
2006-04-06 08:22:51 +00:00
\fI NNBYTES\fR
2013-03-27 11:43:41 +08:00
is the maximum number of bytes the library is allowed to allocate\& . This can also be used to make sure batch processing of
2006-04-06 08:22:51 +00:00
XML
2013-03-27 11:43:41 +08:00
files will not exhaust the virtual memory of the server running them\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- memory\fR
2013-03-27 11:43:41 +08:00
.RS 4
Parse from memory\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- noblanks\fR
2013-03-27 11:43:41 +08:00
.RS 4
Drop ignorable blank spaces\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- nocatalogs\fR
2013-03-27 11:43:41 +08:00
.RS 4
Do not use any catalogs\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- nocdata\fR
2013-03-27 11:43:41 +08:00
.RS 4
Substitute CDATA section by equivalent text nodes\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- noent\fR
2013-03-27 11:43:41 +08:00
.RS 4
Substitute entity values for entity references\& . By default,
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
2013-03-27 11:43:41 +08:00
leaves entity references in place\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- nonet\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Do not use the Internet to fetch
2013-03-27 11:43:41 +08:00
DTDs or entities\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- noout\fR
2013-03-27 11:43:41 +08:00
.RS 4
Suppress output\& . By default,
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
2013-03-27 11:43:41 +08:00
outputs the result tree\& .
.RE
.PP
2004-02-27 03:26:30 +00:00
\fB \- \- nowarning\fR
2013-03-27 11:43:41 +08:00
.RS 4
Do not emit warnings from the parser and/or validator\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- nowrap\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Do not output
HTML
2013-03-27 11:43:41 +08:00
doc wrapper\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- noxincludenode\fR
2013-03-27 11:43:41 +08:00
.RS 4
Do XInclude processing but do not generate XInclude start and end nodes\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- nsclean\fR
2013-03-27 11:43:41 +08:00
.RS 4
Remove redundant namespace declarations\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- output \fR \fB \fI FILE\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Define a file path where
\fB xmllint\fR
2013-03-27 11:43:41 +08:00
will save the result of parsing\& . Usually the programs build a tree and save it on
stdout, with this option the result
2006-04-06 08:22:51 +00:00
XML
2013-03-27 11:43:41 +08:00
instance will be saved onto a file\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- path "\fR \fB \fI PATH(S)\fR \fR \fB "\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Use the (space\- or colon\- separated) list of filesystem paths specified by
\fI PATHS\fR
to load
2013-03-27 11:43:41 +08:00
DTDs or entities\& . Enclose space\- separated lists by quotation marks\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- pattern \fR \fB \fI PATTERNVALUE\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
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\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- postvalid\fR
2013-03-27 11:43:41 +08:00
.RS 4
Validate after parsing has completed\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- push\fR
2013-03-27 11:43:41 +08:00
.RS 4
Use the push mode of the parser\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- recover\fR
2013-03-27 11:43:41 +08:00
.RS 4
Output any parsable portions of an invalid document\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- relaxng \fR \fB \fI SCHEMA\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Use RelaxNG file named
\fI SCHEMA\fR
2013-03-27 11:43:41 +08:00
for validation\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- repeat\fR
2013-03-27 11:43:41 +08:00
.RS 4
Repeat 100 times, for timing or profiling\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB \- \- schema \fR \fB \fI SCHEMA\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
Use a W3C
XML
Schema file named
2006-04-06 08:22:51 +00:00
\fI SCHEMA\fR
2013-03-27 11:43:41 +08:00
for validation\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- shell\fR
2013-03-27 11:43:41 +08:00
.RS 4
Run a navigating shell\& . Details on available commands in shell mode are below (see
the section called \(lq SHELL COMMANDS\(rq )\& .
.RE
.PP
\fB \- \- xpath "\fR \fB \fI XPath_expression\fR \fR \fB "\fR
.RS 4
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\& .
.RE
.PP
2004-02-27 03:26:30 +00:00
\fB \- \- stream\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
Use streaming
API
\- useful when used in combination with
2006-04-06 08:22:51 +00:00
\fB \- \- relaxng\fR
or
\fB \- \- valid\fR
2013-03-27 11:43:41 +08:00
options for validation of files that are too large to be held in memory\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- testIO\fR
2013-03-27 11:43:41 +08:00
.RS 4
Test user input/output support\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- timing\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Output information about the time it takes
\fB xmllint\fR
2013-03-27 11:43:41 +08:00
to perform the various steps\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- valid\fR
2013-03-27 11:43:41 +08:00
.RS 4
Determine if the document is a valid instance of the included Document Type Definition (DTD)\& . A
2006-04-06 08:22:51 +00:00
DTD
to be validated against also can be specified at the command line using the
\fB \- \- dtdvalid\fR
2013-03-27 11:43:41 +08:00
option\& . By default,
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
2013-03-27 11:43:41 +08:00
also checks to determine if the document is well\- formed\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- version\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Display the version of
\fB libxml\fR (3)
2013-03-27 11:43:41 +08:00
used\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- walker\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Test the walker module, which is a reader interface but for a document tree, instead of using the reader
API
2013-03-27 11:43:41 +08:00
on an unparsed document it works on an existing in\- memory tree\& . Used for debugging\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- xinclude\fR
2013-03-27 11:43:41 +08:00
.RS 4
Do XInclude processing\& .
.RE
.PP
2006-02-20 08:58:51 +00:00
\fB \- \- xmlout\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Used in conjunction with
2013-03-27 11:43:41 +08:00
\fB \- \- html\fR \& . Usually when
2006-04-06 08:22:51 +00:00
HTML
is parsed the document is saved with the
HTML
2013-03-27 11:43:41 +08:00
serializer\& . But with this option the resulting document is saved with the
2006-04-06 08:22:51 +00:00
XML
2013-03-27 11:43:41 +08:00
serializer\& . This is primarily used to generate
2006-04-06 08:22:51 +00:00
XHTML
from
HTML
2013-03-27 11:43:41 +08:00
input\& .
.RE
2006-02-19 21:35:39 +00:00
.SH "SHELL COMMANDS"
2001-11-18 00:18:06 +00:00
.PP
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
offers an interactive shell mode invoked with the
\fB \- \- shell\fR
2013-03-27 11:43:41 +08:00
command\& . Available commands in shell mode include (in alphabetical order):
.PP
2001-11-18 00:18:06 +00:00
\fB base\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Display
XML
2013-03-27 11:43:41 +08:00
base of the node\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB bye\fR
2013-03-27 11:43:41 +08:00
.RS 4
Leave the shell\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB cat \fR \fB \fI NODE\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Display the given node or the current one\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB cd \fR \fB \fI PATH\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Change the current node to the given path (if unique) or root if no argument is given\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB dir \fR \fB \fI PATH\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Dumps information about the node (namespace, attributes, content)\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB du \fR \fB \fI PATH\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Show the structure of the subtree under the given path or the current node\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB exit\fR
2013-03-27 11:43:41 +08:00
.RS 4
Leave the shell\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB help\fR
2013-03-27 11:43:41 +08:00
.RS 4
Show this help\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB free\fR
2013-03-27 11:43:41 +08:00
.RS 4
Display memory usage\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB load \fR \fB \fI FILENAME\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Load a new document with the given filename\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB ls \fR \fB \fI PATH\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
List contents of the given path or the current directory\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB pwd\fR
2013-03-27 11:43:41 +08:00
.RS 4
Display the path to the current node\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB quit\fR
2013-03-27 11:43:41 +08:00
.RS 4
Leave the shell\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB save \fR \fB \fI FILENAME\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Save the current document to the given filename or to the original name\& .
.RE
.PP
2001-11-18 00:18:06 +00:00
\fB validate\fR
2013-03-27 11:43:41 +08:00
.RS 4
Check the document for errors\& .
.RE
.PP
2006-04-06 08:22:51 +00:00
\fB write \fR \fB \fI FILENAME\fR \fR
2013-03-27 11:43:41 +08:00
.RS 4
Write the current node to the given filename\& .
.RE
2006-02-19 21:35:39 +00:00
.SH "ENVIRONMENT"
2013-03-27 11:43:41 +08:00
.PP
2006-02-19 21:35:39 +00:00
\fB SGML_CATALOG_FILES\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
SGML
2013-03-27 11:43:41 +08:00
catalog behavior can be changed by redirecting queries to the user\* (Aqs own set of catalogs\& . This can be done by setting the
2006-08-21 08:34:11 +00:00
\fB SGML_CATALOG_FILES\fR
2013-03-27 11:43:41 +08:00
environment variable to a list of catalogs\& . An empty one should deactivate loading the default
/etc/sgml/catalog
catalog\& .
.RE
.PP
2006-02-19 21:35:39 +00:00
\fB XML_CATALOG_FILES\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
XML
2013-03-27 11:43:41 +08:00
catalog behavior can be changed by redirecting queries to the user\* (Aqs own set of catalogs\& . This can be done by setting the
2006-04-06 08:22:51 +00:00
\fB XML_CATALOG_FILES\fR
2013-03-27 11:43:41 +08:00
environment variable to a list of catalogs\& . An empty one should deactivate loading the default
/etc/xml/catalog
catalog\& .
.RE
.PP
2006-02-19 21:35:39 +00:00
\fB XML_DEBUG_CATALOG\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 08:22:51 +00:00
Setting the environment variable
\fB XML_DEBUG_CATALOG\fR
2006-08-21 08:34:11 +00:00
to
\fI non\- zero\fR
2006-04-06 08:22:51 +00:00
using the
\fB export\fR
2013-03-27 11:43:41 +08:00
command outputs debugging information related to catalog operations\& .
.RE
.PP
2006-02-19 21:35:39 +00:00
\fB XMLLINT_INDENT\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-08-21 08:34:11 +00:00
Setting the environment variable
\fB XMLLINT_INDENT\fR
2013-03-27 11:43:41 +08:00
controls the indentation\& . The default value is two spaces " "\& .
.RE
2006-02-19 21:35:39 +00:00
.SH "DIAGNOSTICS"
2004-06-20 00:36:06 +00:00
.PP
2006-04-06 08:22:51 +00:00
\fB xmllint\fR
2013-03-27 11:43:41 +08:00
return codes provide information that can be used when calling it from scripts\& .
.PP
2006-04-06 12:57:09 +00:00
\fB 0\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
No error
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 1\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Unclassified
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 2\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Error in
DTD
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 3\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Validation error
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 4\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Validation error
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 5\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Error in schema compilation
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 6\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Error writing output
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 7\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Error in pattern (generated when
\fB \- \- pattern\fR
option is used)
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 8\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Error in Reader registration (generated when
\fB \- \- chkregister\fR
option is used)
2013-03-27 11:43:41 +08:00
.RE
.PP
2006-04-06 12:57:09 +00:00
\fB 9\fR
2013-03-27 11:43:41 +08:00
.RS 4
2006-04-06 12:57:09 +00:00
Out of memory error
2013-03-27 11:43:41 +08:00
.RE
2006-04-06 12:57:09 +00:00
.SH "SEE ALSO"
2006-04-06 08:22:51 +00:00
.PP
\fB libxml\fR (3)
2006-08-21 08:34:11 +00:00
.PP
More information can be found at
2013-03-27 11:43:41 +08:00
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2006-08-21 08:34:11 +00:00
\fB libxml\fR (3)
web page
2013-03-27 11:43:41 +08:00
\m[blue]\fB\%http://www.xmlsoft.org/\fR\m[]
.RE
.sp
.RS 4
.ie n \{ \
\h '-04'\(bu \h '+03'\c
. \}
.el \{ \
.sp -1
.IP \(bu 2 .3
. \}
2006-08-21 08:34:11 +00:00
W3C
XSLT
page
2013-03-27 11:43:41 +08:00
\m[blue]\fB\%http://www.w3.org/TR/xslt\fR\m[]
.RE
.sp
.SH "AUTHORS"
.PP
\fB John Fleck\fR <\& jfleck@inkstain\& .net\& >
.RS 4
Author.
.RE
.PP
\fB Ziying Sherwin\fR <\& sherwin@nlm\& .nih\& .gov\& >
.RS 4
Author.
.RE
.PP
\fB Heiko Rupp\fR <\& hwr@pilhuhn\& .de\& >
.RS 4
Author.
.RE
.SH "COPYRIGHT"
.br
Copyright \(co 2001, 2004
.br