Reputation: 1317
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.
Upvotes: 56
Views: 111499
Reputation: 139
On Windows (I'm using 10 Pro, but this could work on most versions I suppose) I work with MobaXTerm which provides an ubuntu terminal emulation, and installing xmllint is a one liner:
apt install libxml2
Upvotes: 1
Reputation: 389
On Debian/Ubuntu-derived distributions, xmllint
is part of the libxml2-utils package.
To install:
sudo apt install libxml2-utils
On RedHat-derived Linux distros, xmllint
comes in the same package as the library itself, so it's very likely you already have it.
Upvotes: 28
Reputation: 1250
I had the same problem and it took me two hours to make it work.
XML
)C:\folderName
(mine = C:\XML
) in the path system variable.
(I'm using Windows 8, for Windows 7 users here's a link):
;C:\folderName
,path
in search box located in your Windows 8 charms.copy a xml file into the xmllint directory
type xmllint --valid --noout fileName.xml
.
If you get this message:
warning : failed to load external entity "fileName.xml"
then that's likely a bug so download an older version of libxml2 from http://xmlsoft.org/sources/win32/ or assign another folder to your XML files and run xmllint from there.
In the command window :
cd C:\Users\user name\Documents\XML files
.xmllint --valid --noout fileName.xml
).Reference:
Upvotes: 72
Reputation: 764
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 ~]$
Upvotes: 1
Reputation: 3080
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.
Upvotes: 39
Reputation: 673
The link from C.M. 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.
Upvotes: 1
Reputation: 25034
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.
Upvotes: 5