table of contents
- bookworm 2.9.14+dfsg-1.3~deb12u1
- testing 2.12.7+dfsg+really2.9.14-1
- unstable 2.12.7+dfsg+really2.9.14-1
- experimental 2.14.3+dfsg-0exp1
XMLLINT(1) | xmllint Manual | XMLLINT(1) |
NAME¶
xmllint - command line XML tool
SYNOPSIS¶
xmllint [--version | --debug | --quiet | --shell | --xpath "XPath_expression" | --debugent | --copy | --recover | --huge | --nocompact | --nodefdtd | --nodict | --noenc | --noent | --nofixup-base-uris | --noout | --nonet | --path "PATH(S)" | --load-trace | --htmlout | --nowrap | --valid | --postvalid | --dtdvalid URL | --dtdvalidfpi FPI | --timing | --output FILE | --repeat | --insert | --compress | --html | --xmlout | --push | --memory | --max-ampl INTEGER | --maxmem NBBYTES | --nowarning | --noblanks | --nocdata | --format | --pretty INTEGER | --encode ENCODING | --dropdtd | --nsclean | --testIO | --catalogs | --nocatalogs | --auto | --xinclude | --noxincludenode | --loaddtd | --dtdattr | --stream | --walker | --pattern PATTERNVALUE | --relaxng SCHEMA | --schema SCHEMA | --schematron SCHEMA | --c14n | --c14n11 | --exc-c14n | --pedantic | --sax | --sax1 | --oldxml10] {XML-FILE(S)... | -}
DESCRIPTION¶
The xmllint program parses one or more XML files, specified on the command line as XML-FILE (or the standard input if the filename provided is - ). 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.
xmllint is included in libxml(3).
OPTIONS¶
xmllint accepts the following options (in alphabetical order):
--auto
--catalogs
--compress
--copy
--c14n, --c14n11, --exc-c14n
--dtdvalid URL
--dtdvalidfpi FPI
--debug
--debugent
--dropdtd
--dtdattr
--encode ENCODING
--format
Especially in the absence of a DTD, this feature has never worked reliably and is fundamentally broken.
--html
--htmlout
--huge
--insert
--loaddtd
--load-trace
--max-ampl INTEGER
--maxmem NNBYTES
--memory
--noblanks
--nocatalogs
--nocdata
--nocompact
--nodefdtd
--nodict
--noenc
--noent
--nofixup-base-uris
--nonet
--noout
--nowarning
--nowrap
--noxincludenode
--nsclean
--oldxml10
--output FILE
--path "PATH(S)"
--pattern PATTERNVALUE
--pedantic
--postvalid
--pretty INTEGER
--push
--quiet
--recover
--relaxng SCHEMA
--repeat
--sax
--sax1
--schema SCHEMA
--schematron SCHEMA
--shell
--xpath "XPath_expression"
--stream
--testIO
--timing
--valid
--version
--walker
--xinclude
--xmlout
SHELL COMMANDS¶
xmllint offers an interactive shell mode invoked with the --shell command. Available commands in shell mode include (in alphabetical order):
base
bye
cat NODE
cd PATH
dir PATH
du PATH
exit
help
load FILENAME
ls PATH
pwd
quit
save FILENAME
validate
write FILENAME
ENVIRONMENT¶
SGML_CATALOG_FILES
XML_CATALOG_FILES
XML_DEBUG_CATALOG
XMLLINT_INDENT
DIAGNOSTICS¶
xmllint return codes provide information that can be used when calling it from scripts.
0
1
2
3
4
5
6
7
9
10
11
SEE ALSO¶
More information can be found at
AUTHORS¶
John Fleck <jfleck@inkstain.net>
Ziying Sherwin <sherwin@nlm.nih.gov>
Heiko Rupp <hwr@pilhuhn.de>
COPYRIGHT¶
Copyright © 2001, 2004
03/27/2025 | libxml2 |