⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmllint.html

📁 xml开源解析代码.版本为libxml2-2.6.29,可支持GB3212.网络消息发送XML时很有用.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xmllint</title><meta name="generator" content="DocBook XSL Stylesheets V1.61.2"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="refentry" lang="en"><a name="id2876302"></a><div class="titlepage"><div></div><div></div></div><div class="refnamediv"><h2>Name</h2><p>xmllint &#8212; command line <span class="acronym">XML</span> tool</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><div class="cmdsynopsis"><p><tt class="command">xmllint</tt>  [[--version] |  [--debug] |  [--shell] |  [--debugent] |  [--copy] |  [--recover] |  [--noent] |  [--noout] |  [--nonet] |  [--htmlout] |  [--nowrap] |  [--valid] |  [--postvalid] |  [--dtdvalid <i class="replaceable"><tt>URL</tt></i>] |  [--dtdvalidfpi <i class="replaceable"><tt>FPI</tt></i>] |  [--timing] |  [--output <i class="replaceable"><tt>file</tt></i>] |  [--repeat] |  [--insert] |  [--compress] |  [--html] |  [--xmlout] |  [--push] |  [--memory] |  [--maxmem <i class="replaceable"><tt>nbbytes</tt></i>] |  [--nowarning] |  [--noblanks] |  [--nocdata] |  [--format] |  [--encode <i class="replaceable"><tt>encoding</tt></i>] |  [--dropdtd] |  [--nsclean] |  [--testIO] |  [--catalogs] |  [--nocatalogs] |  [--auto] |  [--xinclude] |  [--noxincludenode] |  [--loaddtd] |  [--dtdattr] |  [--stream] |  [--walker] |  [--pattern <i class="replaceable"><tt>patternvalue</tt></i>] |  [--chkregister] |  [--relaxng] |  [--schema] |  [--c14n]] [<tt class="option"><i class="replaceable"><tt>xmlfile</tt></i></tt>]</p></div></div><div class="refsect1" lang="en"><a name="introduction"></a><h2>Introduction</h2><p>      The xmllint program parses one or more XML files, specified on the      command line as <i class="replaceable"><tt>xmlfile</tt></i>. It prints various      types of output, depending upon the options selected. It is useful for      detecting errors both in <span class="acronym">XML</span> code and in the      <span class="acronym">XML</span> parser itself.    </p><p>      It is included in <span class="application">libxml2</span>.    </p></div><div class="refsect1" lang="en"><a name="options"></a><h2>Options</h2><div class="variablelist"><dl><dt><span class="term"><tt class="option">--version</tt></span></dt><dd>	    Display the version of	    <span class="application">libxml2</span> used.	  </dd><dt><span class="term"><tt class="option">--debug</tt></span></dt><dd>	    Parse a file and output an annotated tree of the	    in-memory version of the document.	  </dd><dt><span class="term"><tt class="option">--shell</tt></span></dt><dd>	    Run a navigating shell. Details on available commands in shell mode	    are below.	  </dd><dt><span class="term"><tt class="option">--debugent</tt></span></dt><dd>	    Debug the entities defined in the document.	  </dd><dt><span class="term"><tt class="option">--copy</tt> </span></dt><dd>	    Test the internal copy implementation.	  </dd><dt><span class="term"><tt class="option">--recover</tt></span></dt><dd>	    Output any parsable portions of an invalid	    document.	  </dd><dt><span class="term"><tt class="option">--noent</tt></span></dt><dd>	    Substitute entity values for entity	    references. By default, <span class="application">xmllint</span> leaves entity	    references in place.	  </dd><dt><span class="term"><tt class="option">--nocdata</tt></span></dt><dd>	    Substitute CDATA section by equivalent text nodes.	  </dd><dt><span class="term"><tt class="option">--nsclean</tt></span></dt><dd>	    Remove redundant namespace declarations.	  </dd><dt><span class="term"><tt class="option">--noout</tt></span></dt><dd>	    Suppress output. By default,	    <span class="application">xmllint</span> outputs the result tree.	  </dd><dt><span class="term"><tt class="option">--htmlout</tt></span></dt><dd>	    Output results as an <span class="acronym">HTML</span>	    file. This causes <span class="application">xmllint</span> to output	    the necessary <span class="acronym">HTML</span> tags surrounding the result tree	    output so the results can be displayed in a browser. 	  </dd><dt><span class="term"><tt class="option">--nowrap </tt></span></dt><dd>	    Do not output HTML doc wrapper.	  </dd><dt><span class="term"><tt class="option">--valid </tt></span></dt><dd>	    Determine if the document is a valid instance	    of the included Document Type Definition (<span class="acronym">DTD</span>). A	    <span class="acronym">DTD</span> to be validated against also can be specified at	    the command line using the <tt class="option">--dtdvalid</tt> option. By default,	    <span class="application">xmllint</span> also checks to determine if the	    document is well-formed.	  </dd><dt><span class="term"><tt class="option">--postvalid</tt></span></dt><dd>	    Validate after parsing is completed.	  </dd><dt><span class="term"> <tt class="option">--dtdvalid</tt> <i class="replaceable"><tt>URL</tt></i></span></dt><dd>	    Use the      <span class="acronym">DTD</span> specified by <i class="replaceable"><tt>URL</tt></i> for      validation.	  </dd><dt><span class="term"> <tt class="option">--dtdvalidfpi</tt> <i class="replaceable"><tt>FPI</tt></i></span></dt><dd>	    Use the      <span class="acronym">DTD</span> specified by the Public Identifier      <i class="replaceable"><tt>FPI</tt></i> for validation, note that this      will require a Catalog exporting that Public Identifier to work.	  </dd><dt><span class="term"><tt class="option">--timing</tt></span></dt><dd>	    Output information about the time it takes	    <span class="application">xmllint</span> to perform the various steps.	  </dd><dt><span class="term"><tt class="option">--output</tt> <i class="replaceable"><tt>file</tt></i></span></dt><dd>Define a file path where xmllint will save the result of	  parsing. Usually the programs build a tree and save it on stdout, with	  this option the result XML instance will be saved onto a file.</dd><dt><span class="term"><tt class="option">--repeat</tt></span></dt><dd>	    Repeat 100 times, for timing or profiling.	  </dd><dt><span class="term"><tt class="option">--insert</tt></span></dt><dd>	    Test for valid insertions.	  </dd><dt><span class="term"><tt class="option">--compress</tt></span></dt><dd>	    Turn on gzip compression of output.	  </dd><dt><span class="term"><tt class="option">--html</tt></span></dt><dd>	    Use the <span class="acronym">HTML</span> parser.	  </dd><dt><span class="term"><tt class="option">--xmlout</tt></span></dt><dd>Used in conjunction with <tt class="option">--html</tt>. Usually  when HTML is parsed the document is saved with the HTML serializer, but with  this option the resulting document is saved with the XML serializer. This is  primarily used to generate XHTML from HTML input.</dd><dt><span class="term"><tt class="option">--push</tt></span></dt><dd>	    Use the push mode of the parser.	  </dd><dt><span class="term"><tt class="option">--memory</tt></span></dt><dd>	   Parse from memory.	  </dd><dt><span class="term"><tt class="option">--maxmem</tt> <i class="replaceable"><tt>nnbytes</tt></i></span></dt><dd>Test the parser memory  support. <i class="replaceable"><tt>nnbytes</tt></i> is the maximum number of bytes the  library is allowed to allocate. This can also be used to make sure batch  processing of XML files will not exhaust the virtual memory of the server  running them.</dd><dt><span class="term"><tt class="option">--nowarning</tt></span></dt><dd>	   Do not emit warnings from the parser and/or validator.	  </dd><dt><span class="term"><tt class="option">--noblanks</tt></span></dt><dd>	   Drop ignorable blank spaces.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -