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

📄 xmllint.1

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 1
字号:
.\" ** You probably do not want to edit this file directly **.\" It was generated using the DocBook XSL Stylesheets (version 1.69.1)..\" Instead of manually editing it, you probably should edit the DocBook XML.\" source for it and then use the DocBook XSL Stylesheets to regenerate it..TH "XMLLINT" "1" "$Date: 2006/08/21 08:34:11 $" "libxml2" "".\" disable hyphenation.nh.\" disable justification (adjust text to left margin only).ad l.SH "NAME"xmllint \- command line XML tool.SH "SYNOPSIS".HP 8\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\-\-nonet\fR \fB\-\-path\ "\fR\fB\fIPATH(S)\fR\fR\fB"\fR \fB\-\-load\-trace\fR \fB\-\-htmlout\fR \fB\-\-nowrap\fR \fB\-\-valid\fR \fB\-\-postvalid\fR \fB\-\-dtdvalid\ \fR\fB\fIURL\fR\fR \fB\-\-dtdvalidfpi\ \fR\fB\fIFPI\fR\fR \fB\-\-timing\fR \fB\-\-output\ \fR\fB\fIFILE\fR\fR \fB\-\-repeat\fR \fB\-\-insert\fR \fB\-\-compress\fR \fB\-\-html\fR \fB\-\-xmlout\fR \fB\-\-push\fR \fB\-\-memory\fR \fB\-\-maxmem\ \fR\fB\fINBBYTES\fR\fR \fB\-\-nowarning\fR \fB\-\-noblanks\fR \fB\-\-nocdata\fR \fB\-\-format\fR \fB\-\-encode\ \fR\fB\fIENCODING\fR\fR \fB\-\-dropdtd\fR \fB\-\-nsclean\fR \fB\-\-testIO\fR \fB\-\-catalogs\fR \fB\-\-nocatalogs\fR \fB\-\-auto\fR \fB\-\-xinclude\fR \fB\-\-noxincludenode\fR \fB\-\-loaddtd\fR \fB\-\-dtdattr\fR \fB\-\-stream\fR \fB\-\-walker\fR \fB\-\-pattern\ \fR\fB\fIPATTERNVALUE\fR\fR \fB\-\-chkregister\fR \fB\-\-relaxng\ \fR\fB\fISCHEMA\fR\fR \fB\-\-schema\ \fR\fB\fISCHEMA\fR\fR \fB\-\-c14n\fR] {\fIXML\-FILE(S)\fR... \-}.HP 8\fBxmllint\fR \fB\-\-help\fR.SH "DESCRIPTION".PPThe\fBxmllint\fRprogram parses one or moreXMLfiles, specified on the command line as\fIXML\-FILE\fR(or the standard input if the filename provided is\fB\-\fR). It prints various types of output, depending upon the options selected. It is useful for detecting errors both inXMLcode and in theXMLparser itself..PP\fBxmllint\fRis included in\fBlibxml\fR(3)..SH "OPTIONS".PP\fBxmllint\fRaccepts the following options (in alphabetical order):.TP\fB\-\-auto\fRGenerate a small document for testing purposes..TP\fB\-\-catalogs\fRUse theSGMLcatalog(s) from\fBSGML_CATALOG_FILES\fR. OtherwiseXMLcatalogs starting from\fI/etc/xml/catalog\fRare used by default..TP\fB\-\-chkregister\fRTurn on node registration. Useful for developers testing\fBlibxml\fR(3)node tracking code..TP\fB\-\-compress\fRTurn on\fBgzip\fR(1)compression of output..TP\fB\-\-copy\fRTest the internal copy implementation..TP\fB\-\-c14n\fRUse the W3CXMLCanonicalisation (C14N) to serialize the result of parsing to\fIstdout\fR. It keeps comments in the result..TP\fB\-\-dtdvalid \fR\fB\fIURL\fR\fRUse theDTDspecified by an\fIURL\fRfor validation..TP\fB\-\-dtdvalidfpi \fR\fB\fIFPI\fR\fRUse theDTDspecified by a Formal Public Identifier\fIFPI\fRfor validation, note that this will require a catalog exporting that Formal Public Identifier to work..TP\fB\-\-debug\fRParse a file and output an annotated tree of the in\-memory version of the document..TP\fB\-\-debugent\fRDebug the entities defined in the document..TP\fB\-\-dropdtd\fRRemoveDTDfrom output..TP\fB\-\-dtdattr\fRFetch externalDTDand populate the tree with inherited attributes..TP\fB\-\-encode \fR\fB\fIENCODING\fR\fROutput in the given encoding..TP\fB\-\-format\fRReformat and reindent the output. The\fBXMLLINT_INDENT\fRenvironment variable controls the indentation. The default value is two spaces " ")..TP\fB\-\-help\fRPrint out a short usage summary for\fBxmllint\fR..TP\fB\-\-html\fRUse theHTMLparser..TP\fB\-\-htmlout\fROutput results as anHTMLfile. This causes\fBxmllint\fRto output the necessaryHTMLtags surrounding the result tree output so the results can be displayed/viewed in a browser..TP\fB\-\-insert\fRTest for valid insertions..TP\fB\-\-loaddtd\fRFetch an externalDTD..TP\fB\-\-load\-trace\fRDisplay all the documents loaded during the processing to\fIstderr\fR..TP\fB\-\-maxmem \fR\fB\fINNBYTES\fR\fRTest the parser memory support.\fINNBYTES\fRis the maximum number of bytes the library is allowed to allocate. This can also be used to make sure batch processing ofXMLfiles will not exhaust the virtual memory of the server running them..TP\fB\-\-memory\fRParse from memory..TP\fB\-\-noblanks\fRDrop ignorable blank spaces..TP\fB\-\-nocatalogs\fRDo not use any catalogs..TP\fB\-\-nocdata\fRSubstitute CDATA section by equivalent text nodes..TP\fB\-\-noent\fRSubstitute entity values for entity references. By default,\fBxmllint\fRleaves entity references in place..TP\fB\-\-nonet\fRDo not use the Internet to fetchDTDs or entities..TP\fB\-\-noout\fRSuppress output. By default,\fBxmllint\fRoutputs the result tree..TP\fB\-\-nowarning\fRDo not emit warnings from the parser and/or validator..TP\fB\-\-nowrap\fRDo not outputHTMLdoc wrapper..TP\fB\-\-noxincludenode\fRDo XInclude processing but do not generate XInclude start and end nodes..TP\fB\-\-nsclean\fRRemove redundant namespace declarations..TP\fB\-\-output \fR\fB\fIFILE\fR\fRDefine a file path where\fBxmllint\fRwill save the result of parsing. Usually the programs build a tree and save it on\fIstdout\fR, with this option the resultXMLinstance will be saved onto a file..TP\fB\-\-path "\fR\fB\fIPATH(S)\fR\fR\fB"\fRUse the (space\- or colon\-separated) list of filesystem paths specified by\fIPATHS\fRto loadDTDs or entities. Enclose space\-separated lists by quotation marks..TP\fB\-\-pattern \fR\fB\fIPATTERNVALUE\fR\fRUsed 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..TP\fB\-\-postvalid\fRValidate after parsing has completed..TP\fB\-\-push\fRUse the push mode of the parser..TP\fB\-\-recover\fROutput any parsable portions of an invalid document..TP\fB\-\-relaxng \fR\fB\fISCHEMA\fR\fRUse RelaxNG file named\fISCHEMA\fRfor validation..TP\fB\-\-repeat\fRRepeat 100 times, for timing or profiling..TP\fB\-\-schema \fR\fB\fISCHEMA\fR\fRUse a W3CXMLSchema file named\fISCHEMA\fRfor validation..TP\fB\-\-shell\fRRun a navigating shell. Details on available commands in shell mode are below (seethe section called \(lqSHELL COMMANDS\(rq)..TP\fB\-\-stream\fRUse streamingAPI\- useful when used in combination with\fB\-\-relaxng\fRor\fB\-\-valid\fRoptions for validation of files that are too large to be held in memory..TP\fB\-\-testIO\fRTest user input/output support..TP\fB\-\-timing\fROutput information about the time it takes\fBxmllint\fRto perform the various steps..TP\fB\-\-valid\fRDetermine if the document is a valid instance of the included Document Type Definition (DTD). ADTDto be validated against also can be specified at the command line using the\fB\-\-dtdvalid\fRoption. By default,\fBxmllint\fRalso checks to determine if the document is well\-formed..TP\fB\-\-version\fRDisplay the version of\fBlibxml\fR(3)used..TP\fB\-\-walker\fRTest the walker module, which is a reader interface but for a document tree, instead of using the readerAPIon an unparsed document it works on an existing in\-memory tree. Used for debugging..TP\fB\-\-xinclude\fRDo XInclude processing..TP\fB\-\-xmlout\fRUsed in conjunction with\fB\-\-html\fR. Usually whenHTMLis parsed the document is saved with theHTMLserializer. But with this option the resulting document is saved with theXMLserializer. This is primarily used to generateXHTMLfromHTMLinput..SH "SHELL COMMANDS".PP\fBxmllint\fRoffers an interactive shell mode invoked with the\fB\-\-shell\fRcommand. Available commands in shell mode include (in alphabetical order):.TP\fBbase\fRDisplayXMLbase of the node..TP\fBbye\fRLeave the shell..TP\fBcat \fR\fB\fINODE\fR\fRDisplay the given node or the current one..TP\fBcd \fR\fB\fIPATH\fR\fRChange the current node to the given path (if unique) or root if no argument is given..TP\fBdir \fR\fB\fIPATH\fR\fRDumps information about the node (namespace, attributes, content)..TP\fBdu \fR\fB\fIPATH\fR\fRShow the structure of the subtree under the given path or the current node..TP\fBexit\fRLeave the shell..TP\fBhelp\fRShow this help..TP\fBfree\fRDisplay memory usage..TP\fBload \fR\fB\fIFILENAME\fR\fRLoad a new document with the given filename..TP\fBls \fR\fB\fIPATH\fR\fRList contents of the given path or the current directory..TP\fBpwd\fRDisplay the path to the current node..TP\fBquit\fRLeave the shell..TP\fBsave \fR\fB\fIFILENAME\fR\fRSave the current document to the given filename or to the original name..TP\fBvalidate\fRCheck the document for errors..TP\fBwrite \fR\fB\fIFILENAME\fR\fRWrite the current node to the given filename..SH "ENVIRONMENT".TP\fBSGML_CATALOG_FILES\fRSGMLcatalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the\fBSGML_CATALOG_FILES\fRenvironment variable to a list of catalogs. An empty one should deactivate loading the default\fI/etc/sgml/catalog\fRcatalog..TP\fBXML_CATALOG_FILES\fRXMLcatalog behavior can be changed by redirecting queries to the user's own set of catalogs. This can be done by setting the\fBXML_CATALOG_FILES\fRenvironment variable to a list of catalogs. An empty one should deactivate loading the default\fI/etc/xml/catalog\fRcatalog..TP\fBXML_DEBUG_CATALOG\fRSetting the environment variable\fBXML_DEBUG_CATALOG\fRto\fInon\-zero\fRusing the\fBexport\fRcommand outputs debugging information related to catalog operations..TP\fBXMLLINT_INDENT\fRSetting the environment variable\fBXMLLINT_INDENT\fRcontrols the indentation. The default value is two spaces " "..SH "DIAGNOSTICS".PP\fBxmllint\fRreturn codes provide information that can be used when calling it from scripts..TP\fB0\fRNo error.TP\fB1\fRUnclassified.TP\fB2\fRError inDTD.TP\fB3\fRValidation error.TP\fB4\fRValidation error.TP\fB5\fRError in schema compilation.TP\fB6\fRError writing output.TP\fB7\fRError in pattern (generated when\fB\-\-pattern\fRoption is used).TP\fB8\fRError in Reader registration (generated when\fB\-\-chkregister\fRoption is used).TP\fB9\fROut of memory error.SH "SEE ALSO".PP\fBlibxml\fR(3).PPMore information can be found at.TP 3\(bu\fBlibxml\fR(3)web page\fI\%http://www.xmlsoft.org/\fR.TP\(buW3CXSLTpage\fI\%http://www.w3.org/TR/xslt\fR.SH "AUTHOR"John Fleck <jfleck@inkstain.net>, Ziying Sherwin <sherwin@nlm.nih.gov>, Heiko Rupp <hwr@pilhuhn.de>. 

⌨️ 快捷键说明

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