Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 1 | '\" t |
| 2 | .\" Title: xmllint |
| 3 | .\" Author: John Fleck <jfleck@inkstain.net> |
Daniel Veillard | e59c244 | 2013-12-11 00:01:38 +0800 | [diff] [blame] | 4 | .\" Generator: DocBook XSL Stylesheets v1.78.1 <http://docbook.sf.net/> |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 5 | .\" Date: $Date$ |
| 6 | .\" Manual: xmllint Manual |
| 7 | .\" Source: libxml2 |
| 8 | .\" Language: English |
| 9 | .\" |
| 10 | .TH "XMLLINT" "1" "$Date$" "libxml2" "xmllint Manual" |
| 11 | .\" ----------------------------------------------------------------- |
| 12 | .\" * Define some portability stuff |
| 13 | .\" ----------------------------------------------------------------- |
| 14 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 15 | .\" http://bugs.debian.org/507673 |
| 16 | .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html |
| 17 | .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
| 18 | .ie \n(.g .ds Aq \(aq |
| 19 | .el .ds Aq ' |
| 20 | .\" ----------------------------------------------------------------- |
| 21 | .\" * set default formatting |
| 22 | .\" ----------------------------------------------------------------- |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 23 | .\" disable hyphenation |
| 24 | .nh |
| 25 | .\" disable justification (adjust text to left margin only) |
| 26 | .ad l |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 27 | .\" ----------------------------------------------------------------- |
| 28 | .\" * MAIN CONTENT STARTS HERE * |
| 29 | .\" ----------------------------------------------------------------- |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 30 | .SH "NAME" |
MDT 2001 John Fleck | fd32de6 | 2001-10-27 20:14:01 +0000 | [diff] [blame] | 31 | xmllint \- command line XML tool |
| 32 | .SH "SYNOPSIS" |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 33 | .HP \w'\fBxmllint\fR\ 'u |
| 34 | \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... | \-} |
| 35 | .HP \w'\fBxmllint\fR\ 'u |
Daniel Veillard | 51698c7 | 2006-04-06 14:02:42 +0000 | [diff] [blame] | 36 | \fBxmllint\fR \fB\-\-help\fR |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 37 | .SH "DESCRIPTION" |
MDT 2001 John Fleck | fd32de6 | 2001-10-27 20:14:01 +0000 | [diff] [blame] | 38 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 39 | The |
| 40 | \fBxmllint\fR |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 41 | program parses one or more |
| 42 | XML |
| 43 | files, specified on the command line as |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 44 | \fIXML\-FILE\fR |
| 45 | (or the standard input if the filename provided is |
| 46 | \fB\-\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 47 | )\&. It prints various types of output, depending upon the options selected\&. It is useful for detecting errors both in |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 48 | XML |
| 49 | code and in the |
| 50 | XML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 51 | parser itself\&. |
MDT 2001 John Fleck | fd32de6 | 2001-10-27 20:14:01 +0000 | [diff] [blame] | 52 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 53 | \fBxmllint\fR |
| 54 | is included in |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 55 | \fBlibxml\fR(3)\&. |
MDT 2001 John Fleck | fd32de6 | 2001-10-27 20:14:01 +0000 | [diff] [blame] | 56 | .SH "OPTIONS" |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 57 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 58 | \fBxmllint\fR |
| 59 | accepts the following options (in alphabetical order): |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 60 | .PP |
MST 2004 John Fleck | e42ae6f | 2004-02-27 03:26:30 +0000 | [diff] [blame] | 61 | \fB\-\-auto\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 62 | .RS 4 |
| 63 | Generate a small document for testing purposes\&. |
| 64 | .RE |
| 65 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 66 | \fB\-\-catalogs\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 67 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 68 | Use the |
| 69 | SGML |
| 70 | catalog(s) from |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 71 | \fBSGML_CATALOG_FILES\fR\&. Otherwise |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 72 | XML |
| 73 | catalogs starting from |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 74 | /etc/xml/catalog |
| 75 | are used by default\&. |
| 76 | .RE |
| 77 | .PP |
MST 2004 John Fleck | e42ae6f | 2004-02-27 03:26:30 +0000 | [diff] [blame] | 78 | \fB\-\-chkregister\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 79 | .RS 4 |
| 80 | Turn on node registration\&. Useful for developers testing |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 81 | \fBlibxml\fR(3) |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 82 | node tracking code\&. |
| 83 | .RE |
| 84 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 85 | \fB\-\-compress\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 86 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 87 | Turn on |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 88 | \fBgzip\fR(1) |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 89 | compression of output\&. |
| 90 | .RE |
| 91 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 92 | \fB\-\-copy\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 93 | .RS 4 |
| 94 | Test the internal copy implementation\&. |
| 95 | .RE |
| 96 | .PP |
MDT 2004 John Fleck | 774a3bd | 2004-08-15 00:54:21 +0000 | [diff] [blame] | 97 | \fB\-\-c14n\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 98 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 99 | Use the W3C |
| 100 | XML |
| 101 | Canonicalisation (C14N) to serialize the result of parsing to |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 102 | stdout\&. It keeps comments in the result\&. |
| 103 | .RE |
| 104 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 105 | \fB\-\-dtdvalid \fR\fB\fIURL\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 106 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 107 | Use the |
| 108 | DTD |
| 109 | specified by an |
| 110 | \fIURL\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 111 | for validation\&. |
| 112 | .RE |
| 113 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 114 | \fB\-\-dtdvalidfpi \fR\fB\fIFPI\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 115 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 116 | Use the |
| 117 | DTD |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 118 | specified by a Formal Public Identifier |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 119 | \fIFPI\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 120 | for validation, note that this will require a catalog exporting that Formal Public Identifier to work\&. |
| 121 | .RE |
| 122 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 123 | \fB\-\-debug\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 124 | .RS 4 |
| 125 | Parse a file and output an annotated tree of the in\-memory version of the document\&. |
| 126 | .RE |
| 127 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 128 | \fB\-\-debugent\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 129 | .RS 4 |
| 130 | Debug the entities defined in the document\&. |
| 131 | .RE |
| 132 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 133 | \fB\-\-dropdtd\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 134 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 135 | Remove |
| 136 | DTD |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 137 | from output\&. |
| 138 | .RE |
| 139 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 140 | \fB\-\-dtdattr\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 141 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 142 | Fetch external |
| 143 | DTD |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 144 | and populate the tree with inherited attributes\&. |
| 145 | .RE |
| 146 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 147 | \fB\-\-encode \fR\fB\fIENCODING\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 148 | .RS 4 |
Daniel Veillard | e59c244 | 2013-12-11 00:01:38 +0800 | [diff] [blame] | 149 | Output in the given encoding\&. Note that this works for full document not fragments or result from XPath queries\&. |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 150 | .RE |
| 151 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 152 | \fB\-\-format\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 153 | .RS 4 |
| 154 | Reformat and reindent the output\&. The |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 155 | \fBXMLLINT_INDENT\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 156 | environment variable controls the indentation\&. The default value is two spaces " ")\&. |
| 157 | .RE |
| 158 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 159 | \fB\-\-help\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 160 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 161 | Print out a short usage summary for |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 162 | \fBxmllint\fR\&. |
| 163 | .RE |
| 164 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 165 | \fB\-\-html\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 166 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 167 | Use the |
| 168 | HTML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 169 | parser\&. |
| 170 | .RE |
| 171 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 172 | \fB\-\-htmlout\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 173 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 174 | Output results as an |
| 175 | HTML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 176 | file\&. This causes |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 177 | \fBxmllint\fR |
| 178 | to output the necessary |
| 179 | HTML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 180 | tags surrounding the result tree output so the results can be displayed/viewed in a browser\&. |
| 181 | .RE |
| 182 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 183 | \fB\-\-insert\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 184 | .RS 4 |
| 185 | Test for valid insertions\&. |
| 186 | .RE |
| 187 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 188 | \fB\-\-loaddtd\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 189 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 190 | Fetch an external |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 191 | DTD\&. |
| 192 | .RE |
| 193 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 194 | \fB\-\-load\-trace\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 195 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 196 | Display all the documents loaded during the processing to |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 197 | stderr\&. |
| 198 | .RE |
| 199 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 200 | \fB\-\-maxmem \fR\fB\fINNBYTES\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 201 | .RS 4 |
| 202 | Test the parser memory support\&. |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 203 | \fINNBYTES\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 204 | is the maximum number of bytes the library is allowed to allocate\&. This can also be used to make sure batch processing of |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 205 | XML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 206 | files will not exhaust the virtual memory of the server running them\&. |
| 207 | .RE |
| 208 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 209 | \fB\-\-memory\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 210 | .RS 4 |
| 211 | Parse from memory\&. |
| 212 | .RE |
| 213 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 214 | \fB\-\-noblanks\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 215 | .RS 4 |
| 216 | Drop ignorable blank spaces\&. |
| 217 | .RE |
| 218 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 219 | \fB\-\-nocatalogs\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 220 | .RS 4 |
| 221 | Do not use any catalogs\&. |
| 222 | .RE |
| 223 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 224 | \fB\-\-nocdata\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 225 | .RS 4 |
| 226 | Substitute CDATA section by equivalent text nodes\&. |
| 227 | .RE |
| 228 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 229 | \fB\-\-noent\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 230 | .RS 4 |
| 231 | Substitute entity values for entity references\&. By default, |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 232 | \fBxmllint\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 233 | leaves entity references in place\&. |
| 234 | .RE |
| 235 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 236 | \fB\-\-nonet\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 237 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 238 | Do not use the Internet to fetch |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 239 | DTDs or entities\&. |
| 240 | .RE |
| 241 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 242 | \fB\-\-noout\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 243 | .RS 4 |
| 244 | Suppress output\&. By default, |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 245 | \fBxmllint\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 246 | outputs the result tree\&. |
| 247 | .RE |
| 248 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 249 | \fB\-\-nowarning\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 250 | .RS 4 |
| 251 | Do not emit warnings from the parser and/or validator\&. |
| 252 | .RE |
| 253 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 254 | \fB\-\-nowrap\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 255 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 256 | Do not output |
| 257 | HTML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 258 | doc wrapper\&. |
| 259 | .RE |
| 260 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 261 | \fB\-\-noxincludenode\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 262 | .RS 4 |
| 263 | Do XInclude processing but do not generate XInclude start and end nodes\&. |
| 264 | .RE |
| 265 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 266 | \fB\-\-nsclean\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 267 | .RS 4 |
| 268 | Remove redundant namespace declarations\&. |
| 269 | .RE |
| 270 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 271 | \fB\-\-output \fR\fB\fIFILE\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 272 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 273 | Define a file path where |
| 274 | \fBxmllint\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 275 | will save the result of parsing\&. Usually the programs build a tree and save it on |
| 276 | stdout, with this option the result |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 277 | XML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 278 | instance will be saved onto a file\&. |
| 279 | .RE |
| 280 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 281 | \fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 282 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 283 | Use the (space\- or colon\-separated) list of filesystem paths specified by |
| 284 | \fIPATHS\fR |
| 285 | to load |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 286 | DTDs or entities\&. Enclose space\-separated lists by quotation marks\&. |
| 287 | .RE |
| 288 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 289 | \fB\-\-pattern \fR\fB\fIPATTERNVALUE\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 290 | .RS 4 |
| 291 | 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\&. |
| 292 | .RE |
| 293 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 294 | \fB\-\-postvalid\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 295 | .RS 4 |
| 296 | Validate after parsing has completed\&. |
| 297 | .RE |
| 298 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 299 | \fB\-\-push\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 300 | .RS 4 |
| 301 | Use the push mode of the parser\&. |
| 302 | .RE |
| 303 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 304 | \fB\-\-recover\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 305 | .RS 4 |
| 306 | Output any parsable portions of an invalid document\&. |
| 307 | .RE |
| 308 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 309 | \fB\-\-relaxng \fR\fB\fISCHEMA\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 310 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 311 | Use RelaxNG file named |
| 312 | \fISCHEMA\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 313 | for validation\&. |
| 314 | .RE |
| 315 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 316 | \fB\-\-repeat\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 317 | .RS 4 |
| 318 | Repeat 100 times, for timing or profiling\&. |
| 319 | .RE |
| 320 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 321 | \fB\-\-schema \fR\fB\fISCHEMA\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 322 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 323 | Use a W3C |
| 324 | XML |
| 325 | Schema file named |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 326 | \fISCHEMA\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 327 | for validation\&. |
| 328 | .RE |
| 329 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 330 | \fB\-\-shell\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 331 | .RS 4 |
| 332 | Run a navigating shell\&. Details on available commands in shell mode are below (see |
| 333 | the section called \(lqSHELL COMMANDS\(rq)\&. |
| 334 | .RE |
| 335 | .PP |
| 336 | \fB\-\-xpath "\fR\fB\fIXPath_expression\fR\fR\fB"\fR |
| 337 | .RS 4 |
| 338 | 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\&. |
| 339 | .RE |
| 340 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 341 | \fB\-\-stream\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 342 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 343 | Use streaming |
| 344 | API |
| 345 | \- useful when used in combination with |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 346 | \fB\-\-relaxng\fR |
| 347 | or |
| 348 | \fB\-\-valid\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 349 | options for validation of files that are too large to be held in memory\&. |
| 350 | .RE |
| 351 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 352 | \fB\-\-testIO\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 353 | .RS 4 |
| 354 | Test user input/output support\&. |
| 355 | .RE |
| 356 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 357 | \fB\-\-timing\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 358 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 359 | Output information about the time it takes |
| 360 | \fBxmllint\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 361 | to perform the various steps\&. |
| 362 | .RE |
| 363 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 364 | \fB\-\-valid\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 365 | .RS 4 |
| 366 | Determine if the document is a valid instance of the included Document Type Definition (DTD)\&. A |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 367 | DTD |
| 368 | to be validated against also can be specified at the command line using the |
| 369 | \fB\-\-dtdvalid\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 370 | option\&. By default, |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 371 | \fBxmllint\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 372 | also checks to determine if the document is well\-formed\&. |
| 373 | .RE |
| 374 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 375 | \fB\-\-version\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 376 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 377 | Display the version of |
| 378 | \fBlibxml\fR(3) |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 379 | used\&. |
| 380 | .RE |
| 381 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 382 | \fB\-\-walker\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 383 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 384 | Test the walker module, which is a reader interface but for a document tree, instead of using the reader |
| 385 | API |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 386 | on an unparsed document it works on an existing in\-memory tree\&. Used for debugging\&. |
| 387 | .RE |
| 388 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 389 | \fB\-\-xinclude\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 390 | .RS 4 |
| 391 | Do XInclude processing\&. |
| 392 | .RE |
| 393 | .PP |
Daniel Veillard | 46f9721 | 2006-02-20 08:58:51 +0000 | [diff] [blame] | 394 | \fB\-\-xmlout\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 395 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 396 | Used in conjunction with |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 397 | \fB\-\-html\fR\&. Usually when |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 398 | HTML |
| 399 | is parsed the document is saved with the |
| 400 | HTML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 401 | serializer\&. But with this option the resulting document is saved with the |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 402 | XML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 403 | serializer\&. This is primarily used to generate |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 404 | XHTML |
| 405 | from |
| 406 | HTML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 407 | input\&. |
| 408 | .RE |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 409 | .SH "SHELL COMMANDS" |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 410 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 411 | \fBxmllint\fR |
| 412 | offers an interactive shell mode invoked with the |
| 413 | \fB\-\-shell\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 414 | command\&. Available commands in shell mode include (in alphabetical order): |
| 415 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 416 | \fBbase\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 417 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 418 | Display |
| 419 | XML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 420 | base of the node\&. |
| 421 | .RE |
| 422 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 423 | \fBbye\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 424 | .RS 4 |
| 425 | Leave the shell\&. |
| 426 | .RE |
| 427 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 428 | \fBcat \fR\fB\fINODE\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 429 | .RS 4 |
| 430 | Display the given node or the current one\&. |
| 431 | .RE |
| 432 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 433 | \fBcd \fR\fB\fIPATH\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 434 | .RS 4 |
| 435 | Change the current node to the given path (if unique) or root if no argument is given\&. |
| 436 | .RE |
| 437 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 438 | \fBdir \fR\fB\fIPATH\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 439 | .RS 4 |
| 440 | Dumps information about the node (namespace, attributes, content)\&. |
| 441 | .RE |
| 442 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 443 | \fBdu \fR\fB\fIPATH\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 444 | .RS 4 |
| 445 | Show the structure of the subtree under the given path or the current node\&. |
| 446 | .RE |
| 447 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 448 | \fBexit\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 449 | .RS 4 |
| 450 | Leave the shell\&. |
| 451 | .RE |
| 452 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 453 | \fBhelp\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 454 | .RS 4 |
| 455 | Show this help\&. |
| 456 | .RE |
| 457 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 458 | \fBfree\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 459 | .RS 4 |
| 460 | Display memory usage\&. |
| 461 | .RE |
| 462 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 463 | \fBload \fR\fB\fIFILENAME\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 464 | .RS 4 |
| 465 | Load a new document with the given filename\&. |
| 466 | .RE |
| 467 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 468 | \fBls \fR\fB\fIPATH\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 469 | .RS 4 |
| 470 | List contents of the given path or the current directory\&. |
| 471 | .RE |
| 472 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 473 | \fBpwd\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 474 | .RS 4 |
| 475 | Display the path to the current node\&. |
| 476 | .RE |
| 477 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 478 | \fBquit\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 479 | .RS 4 |
| 480 | Leave the shell\&. |
| 481 | .RE |
| 482 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 483 | \fBsave \fR\fB\fIFILENAME\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 484 | .RS 4 |
| 485 | Save the current document to the given filename or to the original name\&. |
| 486 | .RE |
| 487 | .PP |
MST 2001 John Fleck | 4230404 | 2001-11-18 00:18:06 +0000 | [diff] [blame] | 488 | \fBvalidate\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 489 | .RS 4 |
| 490 | Check the document for errors\&. |
| 491 | .RE |
| 492 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 493 | \fBwrite \fR\fB\fIFILENAME\fR\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 494 | .RS 4 |
| 495 | Write the current node to the given filename\&. |
| 496 | .RE |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 497 | .SH "ENVIRONMENT" |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 498 | .PP |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 499 | \fBSGML_CATALOG_FILES\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 500 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 501 | SGML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 502 | catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 503 | \fBSGML_CATALOG_FILES\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 504 | environment variable to a list of catalogs\&. An empty one should deactivate loading the default |
| 505 | /etc/sgml/catalog |
| 506 | catalog\&. |
| 507 | .RE |
| 508 | .PP |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 509 | \fBXML_CATALOG_FILES\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 510 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 511 | XML |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 512 | catalog behavior can be changed by redirecting queries to the user\*(Aqs own set of catalogs\&. This can be done by setting the |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 513 | \fBXML_CATALOG_FILES\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 514 | environment variable to a list of catalogs\&. An empty one should deactivate loading the default |
| 515 | /etc/xml/catalog |
| 516 | catalog\&. |
| 517 | .RE |
| 518 | .PP |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 519 | \fBXML_DEBUG_CATALOG\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 520 | .RS 4 |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 521 | Setting the environment variable |
| 522 | \fBXML_DEBUG_CATALOG\fR |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 523 | to |
| 524 | \fInon\-zero\fR |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 525 | using the |
| 526 | \fBexport\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 527 | command outputs debugging information related to catalog operations\&. |
| 528 | .RE |
| 529 | .PP |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 530 | \fBXMLLINT_INDENT\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 531 | .RS 4 |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 532 | Setting the environment variable |
| 533 | \fBXMLLINT_INDENT\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 534 | controls the indentation\&. The default value is two spaces " "\&. |
| 535 | .RE |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 536 | .SH "DIAGNOSTICS" |
Daniel Veillard | 6464d6a | 2006-02-19 21:35:39 +0000 | [diff] [blame] | 537 | .PP |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 538 | \fBxmllint\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 539 | return codes provide information that can be used when calling it from scripts\&. |
| 540 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 541 | \fB0\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 542 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 543 | No error |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 544 | .RE |
| 545 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 546 | \fB1\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 547 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 548 | Unclassified |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 549 | .RE |
| 550 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 551 | \fB2\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 552 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 553 | Error in |
| 554 | DTD |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 555 | .RE |
| 556 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 557 | \fB3\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 558 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 559 | Validation error |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 560 | .RE |
| 561 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 562 | \fB4\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 563 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 564 | Validation error |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 565 | .RE |
| 566 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 567 | \fB5\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 568 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 569 | Error in schema compilation |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 570 | .RE |
| 571 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 572 | \fB6\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 573 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 574 | Error writing output |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 575 | .RE |
| 576 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 577 | \fB7\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 578 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 579 | Error in pattern (generated when |
| 580 | \fB\-\-pattern\fR |
| 581 | option is used) |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 582 | .RE |
| 583 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 584 | \fB8\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 585 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 586 | Error in Reader registration (generated when |
| 587 | \fB\-\-chkregister\fR |
| 588 | option is used) |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 589 | .RE |
| 590 | .PP |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 591 | \fB9\fR |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 592 | .RS 4 |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 593 | Out of memory error |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 594 | .RE |
Daniel Veillard | 1589e8d | 2006-04-06 12:57:09 +0000 | [diff] [blame] | 595 | .SH "SEE ALSO" |
Daniel Veillard | bf95fd2 | 2006-04-06 08:22:51 +0000 | [diff] [blame] | 596 | .PP |
| 597 | \fBlibxml\fR(3) |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 598 | .PP |
| 599 | More information can be found at |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 600 | .sp |
| 601 | .RS 4 |
| 602 | .ie n \{\ |
| 603 | \h'-04'\(bu\h'+03'\c |
| 604 | .\} |
| 605 | .el \{\ |
| 606 | .sp -1 |
| 607 | .IP \(bu 2.3 |
| 608 | .\} |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 609 | \fBlibxml\fR(3) |
| 610 | web page |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 611 | \m[blue]\fB\%http://www.xmlsoft.org/\fR\m[] |
| 612 | .RE |
| 613 | .sp |
| 614 | .RS 4 |
| 615 | .ie n \{\ |
| 616 | \h'-04'\(bu\h'+03'\c |
| 617 | .\} |
| 618 | .el \{\ |
| 619 | .sp -1 |
| 620 | .IP \(bu 2.3 |
| 621 | .\} |
Daniel Veillard | ad21198 | 2006-08-21 08:34:11 +0000 | [diff] [blame] | 622 | W3C |
| 623 | XSLT |
| 624 | page |
Daniel Veillard | 113384f | 2013-03-27 11:43:41 +0800 | [diff] [blame] | 625 | \m[blue]\fB\%http://www.w3.org/TR/xslt\fR\m[] |
| 626 | .RE |
| 627 | .sp |
| 628 | .SH "AUTHORS" |
| 629 | .PP |
| 630 | \fBJohn Fleck\fR <\&jfleck@inkstain\&.net\&> |
| 631 | .RS 4 |
| 632 | Author. |
| 633 | .RE |
| 634 | .PP |
| 635 | \fBZiying Sherwin\fR <\&sherwin@nlm\&.nih\&.gov\&> |
| 636 | .RS 4 |
| 637 | Author. |
| 638 | .RE |
| 639 | .PP |
| 640 | \fBHeiko Rupp\fR <\&hwr@pilhuhn\&.de\&> |
| 641 | .RS 4 |
| 642 | Author. |
| 643 | .RE |
| 644 | .SH "COPYRIGHT" |
| 645 | .br |
| 646 | Copyright \(co 2001, 2004 |
| 647 | .br |