Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
xmllint(1)
Edit
PageHistory
Diff
Info
LikePages
xmllint !!!xmllint NAME SYNOPSIS INTRODUCTION OPTIONS SHELL AUTHOR ---- !!NAME xmllint - command line XML tool !!SYNOPSIS __xmllint__ [[__--version__ | __--debug__ | __--shell__ | __--debugent__ | __--copy__ | __--recover__ | __--noent__ | __--noout__ | __--htmlout__ | __--nowrap__ | __--valid__ | __--postvalid__ | __--dtdvalid__ ''URL'' | __--timing__ | __--repeat__ | __--insert__ | __--compress__ | __--sgml__ | __--html__ | __--push__ | __--memory__ | __--nowarning__ | __--noblanks__ | __--format__ | __--testIO__ | __--encode__ ''encoding'' | __--catalogs__ | __--nocatalogs__ | __--auto__ | __--xinclude__ | __--loaddtd__ | __--dtdattr__ | __--dropdtd__] [[''xmlfile''] !!INTRODUCTION The xmllint program parses one or more XML files, specified on the command line as ''xmlfile''. 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. It is included in libxml2. !!OPTIONS __--version__ Display the version of libxml2 used. __--debug__ Parse a file and output an annotated tree of the in-memory version of the document. __--shell__ Run a navigating shell. Details on available commands in shell mode are below. __--debugent__ Debug the entities defined in the document. __--copy__ Test the internal copy implementation. __--recover__ Output any parsable portions of an invalid document. __--noent__ Substitute entity values for entity references. By default, xmllint leaves entity references in place. __--noout__ Suppress output. By default, xmllint outputs the result tree. __--htmlout__ 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. __--nowrap__ Do not output HTML doc wrapper. __--valid__ 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 __--dtdvalid__ option. By default, xmllint also checks to determine if the document is well-formed. __--postvalid__ Validate after parsing is completed. __--dtdvalid__ ''URL'' Use the DTD specified by ''URL'' for validation. __--timing__ Output information about the time it takes xmllint to perform the various steps. __--repeat__ Repeat 100 times, for timing or profiling. __--insert__ Test for valid insertions. __--compress__ Turn on gzip compression of output. __--sgml__ 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. __--html__ Use the HTML parser. __--push__ Use the push mode of the parser. __--memory__ Parse from memory. __--nowarning__ Do not emit warnings from the parser and/or validator. __--noblanks__ Drop ignorable blank spaces. __--format__ Reformat and reindent the output. __--testIO__ Test user input/output support. __--encode__ ''encoding'' Output in the given encoding. __--catalogs__ Use the catalogs from $SGML_CATALOG_FILES. Otherwise /etc/xml/catalog is used by default. __--nocatalogs__ Do not use any catalogs. __--auto__ Generate a small document for testing purposes. __--xinclude__ Do XInclude processing. __--loaddtd__ Fetch external DTD. __--dtdattr__ Fetch external DTD and populate the tree with inherited attributes. __--dropdtd__ Remove DTD from output. !!SHELL xmllint offers an interactive shell mode invoked with the __--shell__ command. Available commands in shell mode include: __base__ display XML base of the node __bye__ leave shell __cat__ ''node'' Display node if given or current node. __cd__ ''path'' Change the current node to ''path'' (if given and unique) or root if no argument given. __dir__ ''path'' Dumps information about the node (namespace, attributes, content). __du__ ''path'' Show the structure of the subtree under path or the current node. __exit__ Leave the shell. __help__ Show this help. __free__ Display memory usage. __load__ ''name'' Load a new document with the given name. __ls__ ''path'' List contents of ''path'' (if given) or the current directory. __pwd__ Display the path to the current node. __quit__ Leave the shell. __save__ ''name'' Saves the current document to ''name'' if given or to the original name. __validate__ Check the document for error. __write__ ''name'' Write the current node to the given filename. !!AUTHOR Copyright 2001 John Fleck ----
2 pages link to
xmllint(1)
:
Man1x
Lint
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.