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

📄 xmllint.html

📁 libxml,在UNIX/LINUX下非常重要的一个库,为XML相关应用提供方便.目前上载的是最新版本,若要取得最新版本,请参考里面的readme.
💻 HTML
📖 第 1 页 / 共 2 页
字号:
	  </dd><dt><span class="term"><tt class="option">--format</tt></span></dt><dd>	   Reformat and reindent the output. The $XMLLINT_INDENT	   environment variable controls the indentation (default 	   value is two spaces "  ").	  </dd><dt><span class="term"><tt class="option">--testIO</tt></span></dt><dd>	   Test user input/output support.	  </dd><dt><span class="term"><tt class="option">--encode</tt> <i class="replaceable"><tt>encoding</tt></i></span></dt><dd>	   Output in the given encoding.	  </dd><dt><span class="term"><tt class="option">--catalogs</tt></span></dt><dd>	   Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog	   is used by default.	  </dd><dt><span class="term"><tt class="option">--nocatalogs</tt></span></dt><dd>	   Do not use any catalogs.	  </dd><dt><span class="term"><tt class="option">--auto</tt></span></dt><dd>	   Generate a small document for testing purposes.	  </dd><dt><span class="term"><tt class="option">--xinclude</tt></span></dt><dd>	   Do XInclude processing.	  </dd><dt><span class="term"><tt class="option">--noxincludenode</tt></span></dt><dd>	   Do XInclude processing but do not generate XInclude start and end	   nodes.	  </dd><dt><span class="term"><tt class="option">--loaddtd</tt></span></dt><dd>	   Fetch external DTD.	  </dd><dt><span class="term"><tt class="option">--dtdattr</tt></span></dt><dd>	   Fetch external DTD and populate the tree with inherited attributes.	  </dd><dt><span class="term"><tt class="option">--dropdtd</tt></span></dt><dd>	    Remove <span class="acronym">DTD</span> from output.	  </dd><dt><span class="term"><tt class="option">--stream</tt></span></dt><dd>Use streaming API - useful when  used  in combination with              --relaxng or --valid options for validation of files that are	    too large to be held in memory.</dd><dt><span class="term"><tt class="option">--walker</tt></span></dt><dd>Test the walker module, which is a reader interface but for a  document tree, instead of using the reader API on an unparsed document it  works on a existing in-memory tree. Used in debugging.</dd><dt><span class="term"><tt class="option">--chkregister</tt></span></dt><dd>Turn on node registration. Useful for developers testing	  libxml2 node tracking code.</dd><dt><span class="term"><tt class="option">--pattern</tt> <i class="replaceable"><tt>patternvalue</tt></i></span></dt><dd>Used to exercise the pattern recognition engine, which can be	  used with the reader interface to the parser. It allows to select some	  nodes in the document based on an XPath (subset) expression. Used for	  debugging.</dd><dt><span class="term"><tt class="option">--relaxng</tt> <i class="replaceable"><tt>schema</tt></i></span></dt><dd>Use RelaxNG file named <i class="replaceable"><tt>schema</tt></i> for	  validation.</dd><dt><span class="term"><tt class="option">--schema</tt> <i class="replaceable"><tt>schema</tt></i></span></dt><dd>Use a W3C XML Schema file named <i class="replaceable"><tt>schema</tt></i> for validation.</dd><dt><span class="term">      <tt class="option">--c14n</tt></span></dt><dd>Use the W3C XML Canonicalisation (C14N) toserialize the result of parsing to stdout. It keeps comments inthe result.</dd></dl></div></div><div class="refsect1" lang="en"><a name="shell"></a><h2>Shell</h2><p>      <span class="application">xmllint</span> offers an interactive shell mode      invoked with the <tt class="option">--shell</tt> command. Available commands in      shell mode include:    </p><div class="variablelist"><dl><dt><span class="term"><tt class="option">base</tt></span></dt><dd>	    display XML base of the node	  </dd><dt><span class="term"><tt class="option">bye</tt></span></dt><dd>	    leave shell	  </dd><dt><span class="term"><tt class="option">cat <i class="replaceable"><tt>node</tt></i></tt></span></dt><dd>	    Display node if given or current node.	  </dd><dt><span class="term"><tt class="option">cd <i class="replaceable"><tt>path</tt></i></tt></span></dt><dd>	    Change the current node to <i class="replaceable"><tt>path</tt></i> (if given	    and unique) or root if no argument given.	  </dd><dt><span class="term"><tt class="option">dir <i class="replaceable"><tt>path</tt></i></tt></span></dt><dd>	    Dumps information about the node (namespace, attributes, content).	  </dd><dt><span class="term"><tt class="option">du <i class="replaceable"><tt>path</tt></i></tt></span></dt><dd>	    Show the structure of the subtree under path or the current node.	  </dd><dt><span class="term"><tt class="option">exit</tt></span></dt><dd>	    Leave the shell.	  </dd><dt><span class="term"><tt class="option">help</tt></span></dt><dd>	    Show this help.	  </dd><dt><span class="term"><tt class="option">free</tt></span></dt><dd>	    Display memory usage.	  </dd><dt><span class="term"><tt class="option">load <i class="replaceable"><tt>name</tt></i></tt></span></dt><dd>	    Load a new document with the given name.	  </dd><dt><span class="term"><tt class="option">ls <i class="replaceable"><tt>path</tt></i></tt></span></dt><dd>	    List contents of <i class="replaceable"><tt>path</tt></i> (if given) or the	    current directory.	  </dd><dt><span class="term"><tt class="option">pwd</tt></span></dt><dd>	    Display the path to the current node.	  </dd><dt><span class="term"><tt class="option">quit</tt></span></dt><dd>	    Leave the shell.	  </dd><dt><span class="term"><tt class="option">save <i class="replaceable"><tt>name</tt></i></tt></span></dt><dd>	    Saves the current document to <i class="replaceable"><tt>name</tt></i> if	    given or to the original name.	  </dd><dt><span class="term"><tt class="option">validate</tt></span></dt><dd>	    Check the document for error.	  </dd><dt><span class="term"><tt class="option">write <i class="replaceable"><tt>name</tt></i></tt></span></dt><dd>	    Write the current node to the given filename.	  </dd></dl></div></div><div class="refsect1" lang="en"><h2>Catalogs</h2><p>Catalog behavior can be changed by redirecting     queries to the user's own set of catalogs. This can be done by setting the     <tt class="varname">XML_CATALOG_FILES</tt> environment variable to a list of     catalogs. An empty one should deactivate loading the default      <tt class="filename">/etc/xml/catalog</tt> default catalog.</p></div><div class="refsect1" lang="en"><h2>Debugging Catalogs</h2><p>Setting the environment variable <tt class="varname">XML_DEBUG_CATALOG</tt>    using the command <b class="command">"export XML_DEBUG_CATALOG="</b>    outputs debugging information related to catalog operations.</p></div><div class="refsect1" lang="en"><h2>Error Return Codes</h2><p>On the completion of execution, <span class="application">Xmllint</span>    returns the following error codes:</p><div class="variablelist"><dl><dt><span class="term">0</span></dt><dd>No error</dd><dt><span class="term">1</span></dt><dd>Unclassified</dd><dt><span class="term">2</span></dt><dd>Error in DTD</dd><dt><span class="term">3</span></dt><dd>Validation error</dd><dt><span class="term">4</span></dt><dd>Validation error</dd><dt><span class="term">5</span></dt><dd>Error in schema compilation</dd><dt><span class="term">6</span></dt><dd>Error writing output</dd><dt><span class="term">7</span></dt><dd>Error in pattern (generated when	  [<span class="optional">--pattern</span>] option is used)</dd><dt><span class="term">8</span></dt><dd>Error in Reader registration (generated when	  [<span class="optional">--chkregister</span>] option is used)</dd><dt><span class="term">9</span></dt><dd>Out of memory error</dd></dl></div></div></div></body></html>

⌨️ 快捷键说明

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