I needed help installing xmllint from this website: http://xmlsoft.org/sources/win32/
In particular, I am not sure which file I am supposed to download - when I click the link for precompiled Windows binaries I am brought to a list of several files and not sure how to proceed.
I had the same problem and it took me two hours to make it work.
xmllint --valid --noout fileName.xml
xmllint --valid --noout fileName.xml
) installation:
http://flowingmotion.jojordan.org/2011/10/08/3-steps-to-download-xmllint/ https://supportweb.cs.bham.ac.uk/documentation/tutorials/docsystem/build/tutorials/docbooksys/segmentedhtml/ch03s03.html
bug :
https://bugzilla.redhat.com/show_bug.cgi?id=863166
For users of Chocolatey , installing xmllint is rather simple:
choco install xsltproc
This package contains the xmllint
, iconv
, xmlcatalog
, and xsltproc
commands, and any dependencies are installed automatically.
Xmllint is part of libxml2-utils package. To install, on Linux use: apt install libxml2-utils
It is true that xmlsoft.org does not have much information about how to install xmllint in Windows.
Perhaps (as already suggested by Quentin in a comment) the information at http://www.zlatkovic.com/libxml.en.html will help you.
@Erik Stabij's solution is the simplest one. You just need to add sudo
before the command if you do not have root access. Otherwise, you may get permission denied error. Like,
sudo apt install libxml2-utils
The link from CM Sperberg-McQueen is a good starting point. You need to 1) download the libxml2 package, and 2) place the bin folder that comes with this in a directory contained in your PATH environmental variable.
If you don't know how to figure out which directories are in your PATH environmental variable follow this: http://www.computerhope.com/issues/ch000549.htm .
at least on centOS
:
[nsaunders@rolly ~]$
[nsaunders@rolly ~]$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description: CentOS Linux release 8.2.2004 (Core)
Release: 8.2.2004
Codename: Core
[nsaunders@rolly ~]$
it's as easy as:
sudo yum install xmlstarlet
so that now xmllint
is installed as:
[nsaunders@rolly ~]$
[nsaunders@rolly ~]$ xmllint --version
xmllint: using libxml version 20907
compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 FTP HTTP DTDValid HTML Legacy C14N Catalog XPath XPointer XInclude Iconv ISO8859X Unicode Regexps Automata Expr Schemas Schematron Modules Debug Zlib Lzma
[nsaunders@rolly ~]$
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.