components/libxml2/xmllint.1
branchs11-update
changeset 2452 9dc4dfa4b04d
parent 2451 f54396da08ea
child 2454 82b8521a2f38
equal deleted inserted replaced
2451:f54396da08ea 2452:9dc4dfa4b04d
     1 .TH xmllint 1 "2001 Nov 26"
       
     2 .SH NAME
       
     3 xmllint \- command line XML tool
       
     4 .SH "SYNOPSIS"
       
     5 \fBxmllint\fR [\fB--version\fR | \fB--debug\fR | \fB--shell\fR | \fB--debugent\fR | \fB--copy\fR | \fB--recover\fR | \fB--noent\fR | \fB--noout\fR | \fB--htmlout\fR | \fB--nowrap\fR | \fB--valid\fR | \fB--postvalid\fR | \fB--dtdvalid  \fIURL\fR \fR | \fB--timing\fR | \fB--repeat\fR | \fB--insert\fR | \fB--compress\fR | \fB--sgml\fR | \fB--html\fR | \fB--push\fR | \fB--memory\fR | \fB--nowarning\fR | \fB--noblanks\fR | \fB--format\fR | \fB--testIO\fR | \fB--encode  \fIencoding\fR \fR | \fB--catalogs\fR | \fB--nocatalogs\fR | \fB--auto\fR | \fB--xinclude\fR | \fB--loaddtd\fR | \fB--dtdattr\fR | \fB--dropdtd\fR] [\fB\fIxmlfile\fR\fR]
       
     6 .SH "INTRODUCTION"
       
     7 
       
     8 .PP
       
     9 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.
       
    10 .PP
       
    11 It is included in libxml2.
       
    12 .SH "OPTIONS"
       
    13 
       
    14 .TP
       
    15 \fB--version\fR
       
    16 Display the version of libxml2 used.
       
    17 .TP
       
    18 \fB--debug\fR
       
    19 Parse a file and output an annotated tree of the in-memory version of the document.
       
    20 .TP
       
    21 \fB--shell\fR
       
    22 Run a navigating shell.
       
    23 .TP
       
    24 \fB--debugent\fR
       
    25 Debug the entities defined in the document.
       
    26 .TP
       
    27 \fB--copy\fR 
       
    28 Test the internal copy implementation.
       
    29 .TP
       
    30 \fB--recover\fR
       
    31 Output any parsable portions of an invalid document.
       
    32 .TP
       
    33 \fB--noent\fR
       
    34 Substitute entity values for entity references. By default, xmllint leaves entity references in place.
       
    35 .TP
       
    36 \fB--noout\fR
       
    37 Suppress output. By default, xmllint outputs the result tree.
       
    38 .TP
       
    39 \fB--htmlout\fR
       
    40 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.
       
    41 .TP
       
    42 \fB--nowrap \fR
       
    43 Do not output HTML doc wrapper.
       
    44 .TP
       
    45 \fB--valid \fR
       
    46 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.
       
    47 .TP
       
    48 \fB--postvalid\fR
       
    49 Validate after parsing is completed.
       
    50 .TP
       
    51  \fB--dtdvalid\fR \fIURL\fR
       
    52 Use the DTD specified by \fIURL\fR for validation.
       
    53 .TP
       
    54 \fB--timing\fR
       
    55 Output information about the time it takes xmllint to perform the various steps.
       
    56 .TP
       
    57 \fB--repeat\fR
       
    58 Repeat 100 times, for timing or profiling.
       
    59 .TP
       
    60 \fB--insert\fR
       
    61 Test for valid insertions.
       
    62 .TP
       
    63 \fB--compress\fR
       
    64 Turn on gzip compression of output.
       
    65 .TP
       
    66 \fB--sgml\fR
       
    67 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.
       
    68 .TP
       
    69 \fB--html\fR
       
    70 Use the HTML parser.
       
    71 .TP
       
    72 \fB--push\fR
       
    73 Use the push mode of the parser.
       
    74 .TP
       
    75 \fB--memory\fR
       
    76 Parse from memory.
       
    77 .TP
       
    78 \fB--nowarning\fR
       
    79 Do not emit warnings from the parser and/or validator.
       
    80 .TP
       
    81 \fB--noblanks\fR
       
    82 Drop ignorable blank spaces.
       
    83 .TP
       
    84 \fB--format\fR
       
    85 Reformat and reindent the output.
       
    86 .TP
       
    87 \fB--testIO\fR
       
    88 Test user input/output support.
       
    89 .TP
       
    90 \fB--encode\fR \fIencoding\fR
       
    91 Output in the given encoding.
       
    92 .TP
       
    93 \fB--catalogs\fR
       
    94 Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog is used by default.
       
    95 .TP
       
    96 \fB--nocatalogs\fR
       
    97 Do not use any catalogs.
       
    98 .TP
       
    99 \fB--auto\fR
       
   100 Generate a small document for testing purposes.
       
   101 .TP
       
   102 \fB--xinclude\fR
       
   103 Do XInclude processing.
       
   104 .TP
       
   105 \fB--loaddtd\fR
       
   106 Fetch external DTD.
       
   107 .TP
       
   108 \fB--dtdattr\fR
       
   109 Fetch external DTD and populate the tree with inherited attributes.
       
   110 .TP
       
   111 \fB--dropdtd\fR
       
   112 Remove DTD from output.
       
   113 .SH AUTHORS
       
   114 John Fleck <[email protected]>, Ziying Sherwin <[email protected]>, Heiko Rupp <[email protected]>
       
   115 This is release 0.2 of the xmllint Manual.