Daniel Veillard | 979e55e | 2000-08-19 16:48:54 +0000 | [diff] [blame] | 1 | .TH XMLLINT 1 "12 April 2000" |
| 2 | .SH NAME |
| 3 | xmllint \- parse XML files and print the result of parsing |
| 4 | .SH SYNOPSIS |
| 5 | .B xmllint |
| 6 | .RB [ \-\-compress ] |
| 7 | .RB [ \-\-copy ] |
| 8 | .RB [ \-\-debug ] |
| 9 | .RB [ \-\-debugent ] |
| 10 | .RB [ \-\-htmlout ] |
| 11 | .RB [ \-\-insert ] |
| 12 | .RB [ \-\-noblanks ] |
| 13 | .RB [ \-\-noent ] |
| 14 | .RB [ \-\-noout ] |
| 15 | .RB [ \-\-nowarning ] |
| 16 | .RB [ \-\-nowarp ] |
| 17 | .RB [ \-\-postvalid ] |
| 18 | .RB [ \-\-push ] |
| 19 | .RB [ \-\-recover ] |
| 20 | .RB [ \-\-repeat ] |
| 21 | .RB [ \-\-shell ] |
| 22 | .RB [ \-\-testIO ] |
| 23 | .RB [ \-\-valid ] |
| 24 | .IR xmlfile ... |
| 25 | .SH DESCRIPTION |
| 26 | The |
| 27 | .IR xmllint |
| 28 | program parses one or more XML files, |
| 29 | specified on the command line as |
| 30 | .IR xmlfile .... |
| 31 | It prints various types of output |
| 32 | (depending upon the options selected). |
| 33 | It is useful for detecting errors both in XML code and in the |
| 34 | XML parser itself. |
| 35 | .SH OPTIONS |
| 36 | .TP 12 |
| 37 | .B \-\-compress |
| 38 | Do |
| 39 | .IR gzip (1) |
| 40 | compression for the output. |
| 41 | .TP |
| 42 | .B \-\-copy |
| 43 | Test the internal copy implementation. |
| 44 | .TP |
| 45 | .B \-\-debug |
| 46 | Dump a debug tree of the in-memory document. |
| 47 | .TP |
| 48 | .B \-\-debugent |
| 49 | Debug the entities defined in the document. |
| 50 | .TP |
| 51 | .B \-\-htmlout |
| 52 | Output results in |
| 53 | .I html |
| 54 | format. |
| 55 | .TP |
| 56 | .B \-\-insert |
| 57 | Test for valid insertion. |
| 58 | .TP |
| 59 | .B \-\-noblanks |
| 60 | Drop blanks from the output. |
| 61 | .TP |
| 62 | .B \-\-noent |
| 63 | Substitute entity references by their value. |
| 64 | .TP |
| 65 | .B \-\-noout |
| 66 | Do not output the result tree. |
| 67 | .TP |
| 68 | .B \-\-nowarning |
| 69 | Do not print warning messages from the parser or validator. |
| 70 | .TP |
| 71 | .B \-\-nowarp |
| 72 | Do not put |
| 73 | .I html |
| 74 | document wrapper. |
| 75 | .TP |
| 76 | .B \-\-postvalid |
| 77 | Do a |
| 78 | .I posteriori |
| 79 | validation. |
| 80 | .TP |
| 81 | .B \-\-push |
| 82 | Use the push mode for the parser. |
| 83 | .TP |
| 84 | .B \-\-recover |
| 85 | Output what was parsable on broken XML documents. |
| 86 | .TP |
| 87 | .B \-\-repeat |
| 88 | Repeat the process 100 times, for the purpose of timing and profiling. |
| 89 | .TP |
| 90 | .B \-\-shell |
| 91 | Run a navigating shell. |
| 92 | .TP |
| 93 | .B \-\-testIO |
| 94 | Test user i/o support. |
| 95 | .TP |
| 96 | .B \-\-valid |
| 97 | Validate the document in addition to std well-formed. |
Daniel Veillard | f7cd481 | 2001-02-23 18:44:52 +0000 | [diff] [blame] | 98 | .SH RESULT |
| 99 | xmllint will return 1 if the XML is not well formed, 2 if the |
| 100 | Dtd could not be loaded and 3 if the valiadtion fails. If no |
| 101 | error is detected it will return 0. |
Daniel Veillard | 979e55e | 2000-08-19 16:48:54 +0000 | [diff] [blame] | 102 | .SH FILES |
| 103 | .TP 2.2i |
| 104 | .B /depot/package/libxml_2.0.0/bin/xmllint |
| 105 | executable |
| 106 | .SH "SEE ALSO" |
| 107 | .BR libxml (4) |
| 108 | .SH AUTHOR |
| 109 | Daniel Veillard (Daniel.Veillard@w3.org) |
| 110 | Manual page by Ziying Sherwin, |
| 111 | Lister Hill National Center for Biomedical Communication, |
| 112 | U.S. National Library of Medicine (sherwin@nlm.nih.gov). |
| 113 | .\" end of manual page |