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] [\fBxmlfile\fR]
40 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.
43 It is included in libxml2.
49 Display the version of libxml2 used.
53 Parse a file and output an annotated tree of the in-memory version of the document.
57 Run a navigating shell. Details on available commands in shell mode are below.
61 Debug the entities defined in the document.
65 Test the internal copy implementation.
69 Output any parsable portions of an invalid document.
73 Substitute entity values for entity references. By default, xmllint leaves entity references in place.
77 Suppress output. By default, xmllint outputs the result tree.
81 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.
85 Do not output HTML doc wrapper.
89 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.
93 Validate after parsing is completed.
96 \fB--dtdvalid\fR \fIURL\fR
97 Use the DTD specified by \fIURL\fR for validation.
101 Output information about the time it takes xmllint to perform the various steps.
105 Repeat 100 times, for timing or profiling.
109 Test for valid insertions.
113 Turn on gzip compression of output.
117 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.
125 Use the push mode of the parser.
133 Do not emit warnings from the parser and/or validator.
137 Drop ignorable blank spaces.
141 Reformat and reindent the output.
145 Test user input/output support.
148 \fB--encode\fR \fIencoding\fR
149 Output in the given encoding.
153 Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog is used by default.
157 Do not use any catalogs.
161 Generate a small document for testing purposes.
165 Do XInclude processing.
173 Fetch external DTD and populate the tree with inherited attributes.
177 Remove DTD from output.
181 Use streaming API - useful for validation of files that are too large to be held in memory.
185 Turn on node registration. Useful for developeres testing libxml2 node tracking code.
190 xmllint offers an interactive shell mode invoked with the \fB--shell\fR command. Available commands in shell mode include:
194 display XML base of the node
202 Display node if given or current node.
206 Change the current node to \fIpath\fR (if given and unique) or root if no argument given.
210 Dumps information about the node (namespace, attributes, content).
214 Show the structure of the subtree under path or the current node.
226 Display memory usage.
230 Load a new document with the given name.
234 List contents of \fIpath\fR (if given) or the current directory.
238 Display the path to the current node.
246 Saves the current document to \fIname\fR if given or to the original name.
250 Check the document for error.
254 Write the current node to the given filename.
256 .SH "DEBUGGING CATALOGS"
259 Setting the environment variable \fIXML_DEBUG_CATALOG\fR using the command \fB"export XML_DEBUG_CATALOG="\fR outputs debugging information related to catalog operations.
262 John Fleck, Ziying Sherwin, Heiko Rupp.