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.
.PP
It is included in libxml2.
.SH"OPTIONS"
.TP
\fB--version\fR
Display the version of libxml2 used.
.TP
\fB--debug\fR
Parse a file and output an annotated tree of the in-memory version of the document.
Output any parsable portions of an invalid document.
.TP
\fB--noent\fR
Substitute entity values for entity references. By default, xmllint leaves entity references in place.
.TP
\fB--noout\fR
Suppress output. By default, xmllint outputs the result tree.
.TP
\fB--htmlout\fR
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.
.TP
\fB--nowrap \fR
Do not output HTML doc wrapper.
.TP
\fB--valid \fR
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.
.TP
\fB--postvalid\fR
Validate after parsing is completed.
.TP
\fB--dtdvalid\fR\fIURL\fR
Use the DTD specified by \fIURL\fR for validation.
.TP
\fB--timing\fR
Output information about the time it takes xmllint to perform the various steps.
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.