1 .\"Generated by db2man.xsl. Don't modify this, modify the source.
10 .de Sp \" Vertical space (when we can't use .PP)
16 .ie \\n(.$>=3 .ne \\$3
20 .TH "XMLLINT" 1 "" "" "xmllint Manual"
22 xmllint \- command line XML tool
26 \fBxmllint\fR [\fB--version\fR | \fB--debug\fR | \fB--shell\fR | \fB--debugent\fR |
27 \fB--copy\fR | \fB--recover\fR | \fB--noent\fR | \fB--noout\fR | \fB--htmlout\fR
28 | \fB--nowrap\fR | \fB--valid\fR | \fB--postvalid\fR | \fB--dtdvalid
29 \fIURL\fR\fR | \fB--timing\fR | \fB--repeat\fR | \fB--insert\fR | \fB--compress\fR
30 | \fB--sgml\fR | \fB--html\fR | \fB--push\fR | \fB--memory\fR | \fB--nowarning\fR
31 | \fB--noblanks\fR | \fB--format\fR | \fB--testIO\fR | \fB--encode \fIencoding\fR\fR
32 | \fB--catalogs\fR | \fB--nocatalogs\fR | \fB--auto\fR | \fB--xinclude\fR
33 | \fB--loaddtd\fR | \fB--dtdattr\fR | \fB--dropdtd\fR | \fB--stream\fR
34 | \fB--chkregister\fR | \fB--relaxng\fR | \fB--schema\fR | \fB--nonet\fR]
41 The xmllint program parses one or more XML files, specified on the command line as \fIxmlfile\fR. 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.
44 It is included in libxml2.
50 Display the version of libxml2 used.
54 Parse a file and output an annotated tree of the in-memory version of the document.
58 Run a navigating shell. Details on available commands in shell mode are below.
62 Debug the entities defined in the document.
66 Test the internal copy implementation.
70 Output any parsable portions of an invalid document.
74 Substitute entity values for entity references. By default, xmllint leaves entity references in place.
78 Suppress output. By default, xmllint outputs the result tree.
82 Output results as an HTML file. This causes xmllint to output the necessary HTML tags surrounding the result tree output so the results can be displayed in a browser.
86 Do not output HTML doc wrapper.
90 Determine 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, xmllint also checks to determine if the document is well-formed.
94 Validate after parsing is completed.
97 \fB--dtdvalid\fR \fIURL\fR
98 Use the DTD specified by \fIURL\fR for validation.
102 Output information about the time it takes xmllint to perform the various steps.
106 Repeat 100 times, for timing or profiling.
110 Test for valid insertions.
114 Turn on gzip compression of output.
118 Use the DocBook SGML parser. This allows documents written in SGML DocBook to be converted into an in-memory tree and treated as if they were written in XML.
126 Use the push mode of the parser.
134 Do not emit warnings from the parser and/or validator.
138 Drop ignorable blank spaces.
142 Reformat and reindent the output. The $XMLLINT_INDENT environment variable controls the indentation (default value is two spaces " ").
146 Test user input/output support.
149 \fB--encode\fR \fIencoding\fR
150 Output in the given encoding.
154 Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog is used by default.
158 Do not use any catalogs.
162 Generate a small document for testing purposes.
166 Do XInclude processing.
174 Fetch external DTD and populate the tree with inherited attributes.
178 Remove DTD from output.
182 Use streaming API - useful when used in combination with --relaxng or --valid options for validation of files that are too large to be held in memory.
186 Turn on node registration. Useful for developeres testing libxml2 node tracking code.
189 \fB--relaxng\fR \fIschema\fR
190 Use RelaxNG file named \fIschema\fR for validation.
193 \fB--schema\fR \fIschema\fR
194 Use a W3C XML Schema file named \fIschema\fR for validation.
198 Do not use the Internet to fetch DTD's or entities.
203 xmllint offers an interactive shell mode invoked with the \fB--shell\fR command. Available commands in shell mode include:
207 display XML base of the node
215 Display node if given or current node.
219 Change the current node to \fIpath\fR (if given and unique) or root if no argument given.
223 Dumps information about the node (namespace, attributes, content).
227 Show the structure of the subtree under path or the current node.
239 Display memory usage.
243 Load a new document with the given name.
247 List contents of \fIpath\fR (if given) or the current directory.
251 Display the path to the current node.
259 Saves the current document to \fIname\fR if given or to the original name.
263 Check the document for error.
267 Write the current node to the given filename.
269 .SH "DEBUGGING CATALOGS"
272 Setting the environment variable \fIXML_DEBUG_CATALOG\fR using the command \fB"export XML_DEBUG_CATALOG="\fR outputs debugging information related to catalog operations.
275 John Fleck, Ziying Sherwin, Heiko Rupp.