blob: 13e38f53ec9b31cc706148d7fcc0b7b96ddaf3a2 [file] [log] [blame]
Daniel Veillardbf95fd22006-04-06 08:22:51 +00001.\" ** You probably do not want to edit this file directly **
2.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1).
3.\" Instead of manually editing it, you probably should edit the DocBook XML
4.\" source for it and then use the DocBook XSL Stylesheets to regenerate it.
5.TH "XMLLINT" "1" "2006\-03\-05" "libxml2" ""
6.\" disable hyphenation
7.nh
8.\" disable justification (adjust text to left margin only)
9.ad l
10.SH "NAME"
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000011xmllint \- command line XML tool
12.SH "SYNOPSIS"
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000013.HP 8
Daniel Veillard51698c72006-04-06 14:02:42 +000014\fBxmllint\fR [\fB\-\-version\fR \fB\-\-debug\fR \fB\-\-shell\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... \-}
Daniel Veillard6464d6a2006-02-19 21:35:39 +000015.HP 8
Daniel Veillard51698c72006-04-06 14:02:42 +000016\fBxmllint\fR \fB\-\-help\fR
Daniel Veillard6464d6a2006-02-19 21:35:39 +000017.SH "DESCRIPTION"
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000018.PP
Daniel Veillardbf95fd22006-04-06 08:22:51 +000019The
20\fBxmllint\fR
21program parses one or more XML files, specified on the command line as
22\fIXML\-FILE\fR
23(or the standard input if the filename provided is
24\fB\-\fR
25). It prints various types of output, depending upon the options selected. It is useful for detecting errors both in
26XML
27code and in the
28XML
29parser itself.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000030.PP
Daniel Veillardbf95fd22006-04-06 08:22:51 +000031\fBxmllint\fR
32is included in
33\fBlibxml\fR(3).
Daniel Veillard961bfc12006-02-21 19:24:04 +000034.PP
Daniel Veillardbf95fd22006-04-06 08:22:51 +000035More information can be found at
36.TP 3
37\(bu
38\fBlibxml\fR(3)
39web page
40\fI\%http://www.xmlsoft.org/\fR
41.TP
42\(bu
43W3C
44XSLT
45page
46\fI\%http://www.w3.org/TR/xslt\fR
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000047.SH "OPTIONS"
Daniel Veillard46f97212006-02-20 08:58:51 +000048.PP
Daniel Veillardbf95fd22006-04-06 08:22:51 +000049\fBxmllint\fR
50accepts the following options (in alphabetical order):
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000051.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000052\fB\-\-auto\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000053Generate a small document for testing purposes.
MDT 2001 John Fleckfd32de62001-10-27 20:14:01 +000054.TP
Daniel Veillard46f97212006-02-20 08:58:51 +000055\fB\-\-catalogs\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000056Use the catalogs from
57\fBSGML_CATALOG_FILES\fR. Otherwise
58\fI/etc/xml/catalog\fR
59is used by default.
John Fleck3cbaa6d2004-08-15 00:47:45 +000060.TP
MST 2004 John Flecke42ae6f2004-02-27 03:26:30 +000061\fB\-\-chkregister\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000062Turn on node registration. Useful for developers testing
63\fBlibxml\fR(3)
64node tracking code.
MST 2003 John Fleckda271742003-03-25 14:05:17 +000065.TP
Daniel Veillard46f97212006-02-20 08:58:51 +000066\fB\-\-compress\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000067Turn on
68gzip
69compression of output.
John Fleck3cbaa6d2004-08-15 00:47:45 +000070.TP
Daniel Veillard46f97212006-02-20 08:58:51 +000071\fB\-\-copy\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000072Test the internal copy implementation.
Daniel Veillarde8b09e42003-05-13 22:14:13 +000073.TP
MDT 2004 John Fleck774a3bd2004-08-15 00:54:21 +000074\fB\-\-c14n\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000075Use the W3C XML Canonicalisation (C14N) to serialize the result of parsing to
76\fIstdout\fR. It keeps comments in the result.
Daniel Veillard46f97212006-02-20 08:58:51 +000077.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +000078\fB\-\-dtdvalid \fR\fB\fIURL\fR\fR
79Use the
80DTD
81specified by an
82\fIURL\fR
83for validation.
Daniel Veillard46f97212006-02-20 08:58:51 +000084.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +000085\fB\-\-dtdvalidfpi \fR\fB\fIFPI\fR\fR
86Use the
87DTD
88specified by a Public Identifier
89\fIFPI\fR
90for validation, note that this will require a Catalog exporting that Public Identifier to work.
Daniel Veillard46f97212006-02-20 08:58:51 +000091.TP
92\fB\-\-debug\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000093Parse a file and output an annotated tree of the in\-memory version of the document.
Daniel Veillard46f97212006-02-20 08:58:51 +000094.TP
95\fB\-\-debugent\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000096Debug the entities defined in the document.
Daniel Veillard46f97212006-02-20 08:58:51 +000097.TP
98\fB\-\-dropdtd\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +000099Remove
100DTD
101from output.
Daniel Veillard46f97212006-02-20 08:58:51 +0000102.TP
103\fB\-\-dtdattr\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000104Fetch external
105DTD
106and populate the tree with inherited attributes.
Daniel Veillard46f97212006-02-20 08:58:51 +0000107.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000108\fB\-\-encode \fR\fB\fIENCODING\fR\fR
109Output in the given encoding.
Daniel Veillard46f97212006-02-20 08:58:51 +0000110.TP
111\fB\-\-format\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000112Reformat and reindent the output. The
113\fBXMLLINT_INDENT\fR
114environment variable controls the indentation (default value is two spaces " ").
Daniel Veillard46f97212006-02-20 08:58:51 +0000115.TP
116\fB\-\-help\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000117Print out a short usage summary for
118\fBxmllint\fR.
Daniel Veillard46f97212006-02-20 08:58:51 +0000119.TP
120\fB\-\-html\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000121Use the
122HTML
123parser.
Daniel Veillard46f97212006-02-20 08:58:51 +0000124.TP
125\fB\-\-htmlout\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000126Output results as an
127HTML
128file. This causes
129\fBxmllint\fR
130to output the necessary
131HTML
132tags surrounding the result tree output so the results can be displayed/viewed in a browser.
Daniel Veillard46f97212006-02-20 08:58:51 +0000133.TP
134\fB\-\-insert\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000135Test for valid insertions.
Daniel Veillard46f97212006-02-20 08:58:51 +0000136.TP
137\fB\-\-loaddtd\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000138Fetch external
139DTD.
Daniel Veillard46f97212006-02-20 08:58:51 +0000140.TP
141\fB\-\-load\-trace\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000142Display all the documents loaded during the processing to
143\fIstderr\fR.
Daniel Veillard46f97212006-02-20 08:58:51 +0000144.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000145\fB\-\-maxmem \fR\fB\fINNBYTES\fR\fR
146Test the parser memory support.
147\fINNBYTES\fR
148is the maximum number of bytes the library is allowed to allocate. This can also be used to make sure batch processing of
149XML
150files will not exhaust the virtual memory of the server running them.
Daniel Veillard46f97212006-02-20 08:58:51 +0000151.TP
152\fB\-\-memory\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000153Parse from memory.
Daniel Veillard46f97212006-02-20 08:58:51 +0000154.TP
155\fB\-\-noblanks\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000156Drop ignorable blank spaces.
Daniel Veillard46f97212006-02-20 08:58:51 +0000157.TP
158\fB\-\-nocatalogs\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000159Do not use any catalogs.
Daniel Veillard46f97212006-02-20 08:58:51 +0000160.TP
161\fB\-\-nocdata\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000162Substitute CDATA section by equivalent text nodes.
Daniel Veillard46f97212006-02-20 08:58:51 +0000163.TP
164\fB\-\-noent\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000165Substitute entity values for entity references. By default,
166\fBxmllint\fR
167leaves entity references in place.
Daniel Veillard46f97212006-02-20 08:58:51 +0000168.TP
169\fB\-\-nonet\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000170Do not use the Internet to fetch
171DTDs or entities.
Daniel Veillard46f97212006-02-20 08:58:51 +0000172.TP
173\fB\-\-noout\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000174Suppress output. By default,
175\fBxmllint\fR
176outputs the result tree.
Daniel Veillard46f97212006-02-20 08:58:51 +0000177.TP
178\fB\-\-nowarning\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000179Do not emit warnings from the parser and/or validator.
Daniel Veillard46f97212006-02-20 08:58:51 +0000180.TP
181\fB\-\-nowrap\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000182Do not output
183HTML
184doc wrapper.
Daniel Veillard46f97212006-02-20 08:58:51 +0000185.TP
186\fB\-\-noxincludenode\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000187Do XInclude processing but do not generate XInclude start and end nodes.
Daniel Veillard46f97212006-02-20 08:58:51 +0000188.TP
189\fB\-\-nsclean\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000190Remove redundant namespace declarations.
Daniel Veillard46f97212006-02-20 08:58:51 +0000191.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000192\fB\-\-output \fR\fB\fIFILE\fR\fR
193Define a file path where
194\fBxmllint\fR
195will save the result of parsing. Usually the programs build a tree and save it on
196\fIstdout\fR, with this option the result
197XML
198instance will be saved onto a file.
Daniel Veillard46f97212006-02-20 08:58:51 +0000199.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000200\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR
201Use the (space\- or colon\-separated) list of filesystem paths specified by
202\fIPATHS\fR
203to load
204DTDs or entities. Enclose space\-separated lists by quotation marks.
Daniel Veillard46f97212006-02-20 08:58:51 +0000205.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000206\fB\-\-pattern \fR\fB\fIPATTERNVALUE\fR\fR
207Used 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.
Daniel Veillard46f97212006-02-20 08:58:51 +0000208.TP
209\fB\-\-postvalid\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000210Validate after parsing is completed.
Daniel Veillard46f97212006-02-20 08:58:51 +0000211.TP
212\fB\-\-push\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000213Use the push mode of the parser.
Daniel Veillard46f97212006-02-20 08:58:51 +0000214.TP
215\fB\-\-recover\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000216Output any parsable portions of an invalid document.
Daniel Veillard46f97212006-02-20 08:58:51 +0000217.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000218\fB\-\-relaxng \fR\fB\fISCHEMA\fR\fR
219Use RelaxNG file named
220\fISCHEMA\fR
221for validation.
Daniel Veillard46f97212006-02-20 08:58:51 +0000222.TP
223\fB\-\-repeat\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000224Repeat 100 times, for timing or profiling.
Daniel Veillard46f97212006-02-20 08:58:51 +0000225.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000226\fB\-\-schema \fR\fB\fISCHEMA\fR\fR
227Use a W3C XML Schema file named
228\fISCHEMA\fR
229for validation.
Daniel Veillard46f97212006-02-20 08:58:51 +0000230.TP
231\fB\-\-shell\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000232Run a navigating shell. Details on available commands in shell mode are below (see
233the section called \(lqSHELL COMMANDS\(rq).
Daniel Veillard46f97212006-02-20 08:58:51 +0000234.TP
235\fB\-\-stream\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000236Use streaming API \- useful when used in combination with
237\fB\-\-relaxng\fR
238or
239\fB\-\-valid\fR
240options for validation of files that are too large to be held in memory.
Daniel Veillard46f97212006-02-20 08:58:51 +0000241.TP
242\fB\-\-testIO\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000243Test user input/output support.
Daniel Veillard46f97212006-02-20 08:58:51 +0000244.TP
245\fB\-\-timing\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000246Output information about the time it takes
247\fBxmllint\fR
248to perform the various steps.
Daniel Veillard46f97212006-02-20 08:58:51 +0000249.TP
250\fB\-\-valid\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000251Determine if the document is a valid instance of the included Document Type Definition (DTD). A
252DTD
253to be validated against also can be specified at the command line using the
254\fB\-\-dtdvalid\fR
255option. By default,
256\fBxmllint\fR
257also checks to determine if the document is well\-formed.
Daniel Veillard46f97212006-02-20 08:58:51 +0000258.TP
259\fB\-\-version\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000260Display the version of
261\fBlibxml\fR(3)
262used.
Daniel Veillard46f97212006-02-20 08:58:51 +0000263.TP
264\fB\-\-walker\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000265Test the walker module, which is a reader interface but for a document tree, instead of using the reader
266API
267on an unparsed document it works on a existing in\-memory tree. Used in debugging.
Daniel Veillard46f97212006-02-20 08:58:51 +0000268.TP
269\fB\-\-xinclude\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000270Do XInclude processing.
Daniel Veillard46f97212006-02-20 08:58:51 +0000271.TP
272\fB\-\-xmlout\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000273Used in conjunction with
274\fB\-\-html\fR. Usually when
275HTML
276is parsed the document is saved with the
277HTML
278serializer, but with this option the resulting document is saved with the
279XML
280serializer. This is primarily used to generate
281XHTML
282from
283HTML
284input.
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000285.SH "SHELL COMMANDS"
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000286.PP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000287\fBxmllint\fR
288offers an interactive shell mode invoked with the
289\fB\-\-shell\fR
290command. Available commands in shell mode include (in alphabetical order):
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000291.TP
292\fBbase\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000293Display
294XML
295base of the node.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000296.TP
297\fBbye\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000298Leave the shell.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000299.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000300\fBcat \fR\fB\fINODE\fR\fR
301Display the given node or the current one.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000302.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000303\fBcd \fR\fB\fIPATH\fR\fR
304Change the current node to the given path (if unique) or root if no argument is given.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000305.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000306\fBdir \fR\fB\fIPATH\fR\fR
307Dumps information about the node (namespace, attributes, content).
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000308.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000309\fBdu \fR\fB\fIPATH\fR\fR
310Show the structure of the subtree under the given path or the current node.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000311.TP
312\fBexit\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000313Leave the shell.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000314.TP
315\fBhelp\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000316Show this help.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000317.TP
318\fBfree\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000319Display memory usage.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000320.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000321\fBload \fR\fB\fIFILENAME\fR\fR
322Load a new document with the given filename.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000323.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000324\fBls \fR\fB\fIPATH\fR\fR
325List contents of the given path or the current directory.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000326.TP
327\fBpwd\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000328Display the path to the current node.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000329.TP
330\fBquit\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000331Leave the shell.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000332.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000333\fBsave \fR\fB\fIFILENAME\fR\fR
334Save the current document to the given filename or to the original name.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000335.TP
336\fBvalidate\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000337Check the document for errors.
MST 2001 John Fleck42304042001-11-18 00:18:06 +0000338.TP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000339\fBwrite \fR\fB\fIFILENAME\fR\fR
340Write the current node to the given filename.
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000341.SH "ENVIRONMENT"
MDT 2004 John Fleck4c76c4f2004-06-20 00:36:06 +0000342.TP
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000343\fBSGML_CATALOG_FILES\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000344to be written ...
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000345.TP
346\fBXML_CATALOG_FILES\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000347Catalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the
348\fBXML_CATALOG_FILES\fR
349environment variable to a list of catalogs. An empty one should deactivate loading the default
350\fI/etc/xml/catalog\fR
351default catalog.
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000352.TP
353\fBXML_DEBUG_CATALOG\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000354Setting the environment variable
355\fBXML_DEBUG_CATALOG\fR
356using the
357\fBexport\fR
358command outputs debugging information related to catalog operations.
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000359.TP
360\fBXMLLINT_INDENT\fR
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000361to be written ...
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000362.SH "DIAGNOSTICS"
Daniel Veillard6464d6a2006-02-19 21:35:39 +0000363.PP
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000364On the completion of execution,
365\fBxmllint\fR
366returns the following error codes:
Daniel Veillard1589e8d2006-04-06 12:57:09 +0000367.TP
368\fB0\fR
369No error
370.TP
371\fB1\fR
372Unclassified
373.TP
374\fB2\fR
375Error in
376DTD
377.TP
378\fB3\fR
379Validation error
380.TP
381\fB4\fR
382Validation error
383.TP
384\fB5\fR
385Error in schema compilation
386.TP
387\fB6\fR
388Error writing output
389.TP
390\fB7\fR
391Error in pattern (generated when
392\fB\-\-pattern\fR
393option is used)
394.TP
395\fB8\fR
396Error in Reader registration (generated when
397\fB\-\-chkregister\fR
398option is used)
399.TP
400\fB9\fR
401Out of memory error
402.SH "SEE ALSO"
Daniel Veillardbf95fd22006-04-06 08:22:51 +0000403.PP
404\fBlibxml\fR(3)
405.SH "AUTHOR"
406John Fleck <jfleck@inkstain.net>, Ziying Sherwin <sherwin@nlm.nih.gov>, Heiko Rupp <hwr@pilhuhn.de>.