blob: 310f68b6713f1d0a61f1bc57c52497423b8255f7 [file] [log] [blame]
MST 2002 John Fleck6647aed2002-12-26 02:23:24 +00001.\"Generated by db2man.xsl. Don't modify this, modify the source.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +00002.de Sh \" Subsection
3.br
4.if t .Sp
5.ne 5
6.PP
7\fB\\$1\fR
8.PP
9..
10.de Sp \" Vertical space (when we can't use .PP)
11.if t .sp .5v
12.if n .sp
13..
14.de Ip \" List item
15.br
16.ie \\n(.$>=3 .ne \\$3
17.el .ne 3
18.IP "\\$1" \\$2
19..
MST 2002 John Fleck6647aed2002-12-26 02:23:24 +000020.TH "XMLLINT" 1 "" "" "xmllint Manual"
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000021.SH NAME
22xmllint \- command line XML tool
23.SH "SYNOPSIS"
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000024.ad l
25.hy 0
26.HP 8
Daniel Veillard6464d6a2006-02-19 21:35:39 +000027\fBxmllint\fR [\fB\fB\-\-version\fR\fR | \fB\fB\-\-debug\fR\fR | \fB\fB\-\-shell\fR\fR | \fB\fB\-\-debugent\fR\fR | \fB\fB\-\-copy\fR\fR | \fB\fB\-\-recover\fR\fR | \fB\fB\-\-noent\fR\fR | \fB\fB\-\-noout\fR\fR | \fB\fB\-\-nonet\fR\fR | \fB\fB\-\-path\ "\fIPATHS\fR"\fR\fR | \fB\fB\-\-load\-trace\fR\fR | \fB\fB\-\-htmlout\fR\fR | \fB\fB\-\-nowrap\fR\fR | \fB\fB\-\-valid\fR\fR | \fB\fB\-\-postvalid\fR\fR | \fB\fB\-\-dtdvalid\ \fIURL\fR\fR\fR | \fB\fB\-\-dtdvalidfpi\ \fIFPI\fR\fR\fR | \fB\fB\-\-timing\fR\fR | \fB\fB\-\-output\ \fIFILE\fR\fR\fR | \fB\fB\-\-repeat\fR\fR | \fB\fB\-\-insert\fR\fR | \fB\fB\-\-compress\fR\fR | \fB\fB\-\-html\fR\fR | \fB\fB\-\-xmlout\fR\fR | \fB\fB\-\-push\fR\fR | \fB\fB\-\-memory\fR\fR | \fB\fB\-\-maxmem\ \fINBBYTES\fR\fR\fR | \fB\fB\-\-nowarning\fR\fR | \fB\fB\-\-noblanks\fR\fR | \fB\fB\-\-nocdata\fR\fR | \fB\fB\-\-format\fR\fR | \fB\fB\-\-encode\ \fIENCODING\fR\fR\fR | \fB\fB\-\-dropdtd\fR\fR | \fB\fB\-\-nsclean\fR\fR | \fB\fB\-\-testIO\fR\fR | \fB\fB\-\-catalogs\fR\fR | \fB\fB\-\-nocatalogs\fR\fR | \fB\fB\-\-auto\fR\fR | \fB\fB\-\-xinclude\fR\fR | \fB\fB\-\-noxincludenode\fR\fR | \fB\fB\-\-loaddtd\fR\fR | \fB\fB\-\-dtdattr\fR\fR | \fB\fB\-\-stream\fR\fR | \fB\fB\-\-walker\fR\fR | \fB\fB\-\-pattern\ \fIPATTERNVALUE\fR\fR\fR | \fB\fB\-\-chkregister\fR\fR | \fB\fB\-\-relaxng\ \fISCHEMA\fR\fR\fR | \fB\fB\-\-schema\ \fISCHEMA\fR\fR\fR | \fB\fB\-\-c14n\fR\fR] {\fIXML\-FILE(S)\fR...}
28.ad
29.hy
30.ad l
31.hy 0
32.HP 8
33\fBxmllint\fR \fB\-\-help\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000034.ad
35.hy
MST 2002 John Fleck6647aed2002-12-26 02:23:24 +000036
Daniel Veillard6464d6a2006-02-19 21:35:39 +000037.SH "DESCRIPTION"
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000038
39.PP
Daniel Veillard6464d6a2006-02-19 21:35:39 +000040The \fBxmllint\fR program parses one or more XML files, specified on the command line as \fIXML\-FILE\fR (or the standard input if the filename provided is \- )\&. It prints various types of output, depending upon the options selected\&. It is useful for detecting errors both in XML code and in the XML parser itself\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000041
42.PP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000043It is included in libxml2\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000044
45.SH "OPTIONS"
46
47.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +000048\fB\-\-help\fR
49Print out a a short usage summary for \fBxmllint\fR\&.
50
51.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000052\fB\-\-version\fR
53Display the version of libxml2 used\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000054
55.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000056\fB\-\-debug\fR
57Parse a file and output an annotated tree of the in\-memory version of the document\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000058
59.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000060\fB\-\-shell\fR
61Run a navigating shell\&. Details on available commands in shell mode are below\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000062
63.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000064\fB\-\-debugent\fR
65Debug the entities defined in the document\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000066
67.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000068\fB\-\-copy\fR
69Test the internal copy implementation\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000070
71.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000072\fB\-\-recover\fR
73Output any parsable portions of an invalid document\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000074
75.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000076\fB\-\-noent\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +000077Substitute entity values for entity references\&. By default, \fBxmllint\fR leaves entity references in place\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000078
79.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000080\fB\-\-nocdata\fR
81Substitute CDATA section by equivalent text nodes\&.
Daniel Veillarddca8cc72003-09-26 13:53:14 +000082
83.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000084\fB\-\-nsclean\fR
85Remove redundant namespace declarations\&.
Daniel Veillarddca8cc72003-09-26 13:53:14 +000086
87.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000088\fB\-\-noout\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +000089Suppress output\&. By default, \fBxmllint\fR outputs the result tree\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000090
91.TP
Daniel Veillard0bff36d2004-08-31 09:37:03 +000092\fB\-\-nonet\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +000093Do not use the Internet to fetch DTDs or entities\&.
Daniel Veillard0bff36d2004-08-31 09:37:03 +000094
95.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +000096\fB\-\-path\fR "\fIPATHS\fR"
97Use the list (separated by space or colon) of filesystem path specified by \fIPATHS\fR to load DTDs or entities \&.
Daniel Veillard0bff36d2004-08-31 09:37:03 +000098
99.TP
100\fB\-\-load\-trace\fR
101Display to stderr all the documents loaded during the processing\&.
102
103.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000104\fB\-\-htmlout\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000105Output results as an HTML file\&. This causes \fBxmllint\fR to output the necessary HTML tags surrounding the result tree output so the results can be displayed in a browser\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000106
107.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000108\fB\-\-nowrap \fR
109Do not output HTML doc wrapper\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000110
111.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000112\fB\-\-valid\fR
113Determine if the document is a valid instance of the included Document Type Definition (DTD)\&. A DTD to be validated against also can be specified at the command line using the \fB\-\-dtdvalid\fR option\&. By default, \fBxmllint\fR also checks to determine if the document is well\-formed\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000114
115.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000116\fB\-\-postvalid\fR
117Validate after parsing is completed\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000118
119.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000120\fB\-\-dtdvalid\fR \fIURL\fR
121Use the DTD specified by \fIURL\fR for validation\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000122
123.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000124\fB\-\-dtdvalidfpi\fR \fIFPI\fR
125Use the DTD specified by the Public Identifier \fIFPI\fR for validation, note that this will require a Catalog exporting that Public Identifier to work\&.
Daniel Veillard66f68e72003-08-18 16:39:51 +0000126
127.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000128\fB\-\-timing\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000129Output information about the time it takes \fBxmllint\fR to perform the various steps\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000130
131.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000132\fB\-\-output\fR \fIFILE\fR
John Fleck3cbaa6d2004-08-15 00:47:45 +0000133Define a file path where xmllint will save the result of parsing\&. Usually the programs build a tree and save it on stdout, with this option the result XML instance will be saved onto a file\&.
134
135.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000136\fB\-\-repeat\fR
137Repeat 100 times, for timing or profiling\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000138
139.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000140\fB\-\-insert\fR
141Test for valid insertions\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000142
143.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000144\fB\-\-compress\fR
145Turn on gzip compression of output\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000146
147.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000148\fB\-\-html\fR
149Use the HTML parser\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000150
151.TP
John Fleck3cbaa6d2004-08-15 00:47:45 +0000152\fB\-\-xmlout\fR
Daniel Veillardf10ae122005-07-10 19:03:16 +0000153Used in conjunction with \fB\-\-html\fR\&. Usually when HTML is parsed the document is saved with the HTML serializer, but with this option the resulting document is saved with the XML serializer\&. This is primarily used to generate XHTML from HTML input\&.
John Fleck3cbaa6d2004-08-15 00:47:45 +0000154
155.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000156\fB\-\-push\fR
157Use the push mode of the parser\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000158
159.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000160\fB\-\-memory\fR
161Parse from memory\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000162
163.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000164\fB\-\-maxmem\fR \fINNBYTES\fR
165Test the parser memory support\&. \fINNBYTES\fR is the maximum number of bytes the library is allowed to allocate\&. This can also be used to make sure batch processing of XML files will not exhaust the virtual memory of the server running them\&.
John Fleck3cbaa6d2004-08-15 00:47:45 +0000166
167.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000168\fB\-\-nowarning\fR
169Do not emit warnings from the parser and/or validator\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000170
171.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000172\fB\-\-noblanks\fR
173Drop ignorable blank spaces\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000174
175.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000176\fB\-\-format\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000177Reformat and reindent the output\&. The \fBXMLLINT_INDENT\fR environment variable controls the indentation (default value is two spaces " ")\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000178
179.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000180\fB\-\-testIO\fR
181Test user input/output support\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000182
183.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000184\fB\-\-encode\fR \fIENCODING\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000185Output in the given encoding\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000186
187.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000188\fB\-\-catalogs\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000189Use the catalogs from \fBSGML_CATALOG_FILES\fR\&. Otherwise \fI/etc/xml/catalog\fR is used by default\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000190
191.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000192\fB\-\-nocatalogs\fR
193Do not use any catalogs\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000194
195.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000196\fB\-\-auto\fR
197Generate a small document for testing purposes\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000198
199.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000200\fB\-\-xinclude\fR
201Do XInclude processing\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000202
203.TP
Daniel Veillardc14c3892004-08-16 12:34:50 +0000204\fB\-\-noxincludenode\fR
205Do XInclude processing but do not generate XInclude start and end nodes\&.
206
207.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000208\fB\-\-loaddtd\fR
209Fetch external DTD\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000210
211.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000212\fB\-\-dtdattr\fR
213Fetch external DTD and populate the tree with inherited attributes\&.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +0000214
MST 2001 John Fleck2323ac22001-12-14 04:24:50 +0000215.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000216\fB\-\-dropdtd\fR
217Remove DTD from output\&.
MST 2001 John Fleck2323ac22001-12-14 04:24:50 +0000218
MST 2003 John Fleck7e54be12003-01-07 03:54:25 +0000219.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000220\fB\-\-stream\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000221Use streaming API \- useful when used in combination with \fB\-\-relaxng\fR or \fB\-\-valid\fR options for validation of files that are too large to be held in memory\&.
MST 2003 John Fleck7e54be12003-01-07 03:54:25 +0000222
223.TP
John Fleck3cbaa6d2004-08-15 00:47:45 +0000224\fB\-\-walker\fR
225Test the walker module, which is a reader interface but for a document tree, instead of using the reader API on an unparsed document it works on a existing in\-memory tree\&. Used in debugging\&.
226
227.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000228\fB\-\-chkregister\fR
Daniel Veillardb9ded822004-08-14 13:53:13 +0000229Turn on node registration\&. Useful for developers testing libxml2 node tracking code\&.
MST 2003 John Fleck7e54be12003-01-07 03:54:25 +0000230
MST 2003 John Fleckda271742003-03-25 14:05:17 +0000231.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000232\fB\-\-pattern\fR \fIPATTERNVALUE\fR
John Fleck3cbaa6d2004-08-15 00:47:45 +0000233Used 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\&.
234
235.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000236\fB\-\-relaxng\fR \fISCHEMA\fR
237Use RelaxNG file named \fISCHEMA\fR for validation\&.
MST 2003 John Fleckda271742003-03-25 14:05:17 +0000238
Daniel Veillarde8b09e42003-05-13 22:14:13 +0000239.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000240\fB\-\-schema\fR \fISCHEMA\fR
241Use a W3C XML Schema file named \fISCHEMA\fR for validation\&.
Daniel Veillarde8b09e42003-05-13 22:14:13 +0000242
243.TP
MDT 2004 John Fleck774a3bd2004-08-15 00:54:21 +0000244\fB\-\-c14n\fR
MDT 2004 John Fleckb1b3a772004-08-19 13:45:47 +0000245Use the W3C XML Canonicalisation (C14N) to serialize the result of parsing to stdout\&. It keeps comments in the result\&.
Daniel Veillarde8b09e42003-05-13 22:14:13 +0000246
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000247.SH "SHELL COMMANDS"
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000248
249.PP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000250 \fBxmllint\fR offers an interactive shell mode invoked with the \fB\-\-shell\fR command\&. Available commands in shell mode include:
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000251
252.TP
253\fBbase\fR
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000254display XML base of the node
255
256.TP
257\fBbye\fR
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000258leave shell
259
260.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000261\fBcat \fINODE\fR\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000262Display node if given or current node\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000263
264.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000265\fBcd \fIPATH\fR\fR
266Change the current node to \fIPATH\fR (if given and unique) or root if no argument given\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000267
268.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000269\fBdir \fIPATH\fR\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000270Dumps information about the node (namespace, attributes, content)\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000271
272.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000273\fBdu \fIPATH\fR\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000274Show the structure of the subtree under path or the current node\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000275
276.TP
277\fBexit\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000278Leave the shell\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000279
280.TP
281\fBhelp\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000282Show this help\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000283
284.TP
285\fBfree\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000286Display memory usage\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000287
288.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000289\fBload \fIFILENAME\fR\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000290Load a new document with the given name\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000291
292.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000293\fBls \fIPATH\fR\fR
294List contents of \fIPATH\fR (if given) or the current directory\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000295
296.TP
297\fBpwd\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000298Display the path to the current node\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000299
300.TP
301\fBquit\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000302Leave the shell\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000303
304.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000305\fBsave \fIFILENAME\fR\fR
306Saves the current document to \fIFILENAME\fR if given or to the original name\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000307
308.TP
309\fBvalidate\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000310Check the document for error\&.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000311
312.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000313\fBwrite \fIFILENAME\fR\fR
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000314Write the current node to the given filename\&.
315
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000316.SH "ENVIRONMENT"
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +0000317
318.PP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000319On the completion of execution, \fBxmllint\fR returns the following error codes:
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000320
321.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000322\fBSGML_CATALOG_FILES\fR
323\&.\&.\&.
324
325.TP
326\fBXML_CATALOG_FILES\fR
327Catalog behavior can be changed by redirecting queries to the user's own set of catalogs\&. This can be done by setting the \fBXML_CATALOG_FILES\fR environment variable to a list of catalogs\&. An empty one should deactivate loading the default \fI/etc/xml/catalog\fR default catalog\&.
328
329.TP
330\fBXML_DEBUG_CATALOG\fR
331Setting the environment variable \fBXML_DEBUG_CATALOG\fR using the command \fB"export XML_DEBUG_CATALOG="\fR outputs debugging information related to catalog operations\&.
332
333.TP
334\fBXMLLINT_INDENT\fR
335\&.\&.\&.
336
337.SH "DIAGNOSTICS"
338
339.PP
340On the completion of execution, \fBxmllint\fR returns the following error codes:
341
342.TP
343\fB0\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000344No error
345
346.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000347\fB1\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000348Unclassified
349
350.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000351\fB2\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000352Error in DTD
353
354.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000355\fB3\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000356Validation error
357
358.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000359\fB4\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000360Validation error
361
362.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000363\fB5\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000364Error in schema compilation
365
366.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000367\fB6\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000368Error writing output
369
370.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000371\fB7\fR
372Error in pattern (generated when \fB\-\-pattern\fR option is used)
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000373
374.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000375\fB8\fR
376Error in Reader registration (generated when \fB\-\-chkregister\fR option is used)
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000377
378.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000379\fB9\fR
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000380Out of memory error
381
MST 2002 John Fleck6647aed2002-12-26 02:23:24 +0000382.SH AUTHORS
383John Fleck, Ziying Sherwin, Heiko Rupp.