Installing xmllint

后端 未结 6 1107
面向向阳花
面向向阳花 2020-12-13 09:28

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 clic

相关标签:
6条回答
  • 2020-12-13 09:40

    I had the same problem and it took me two hours to make it work.

    1. Download iconv, libxml2, libxmlsec , zlib from ftp://ftp.zlatkovic.com/libxml/
    2. Extract the zip file then copy all the files in the bin folder of each download.
    3. Paste the files in a folder (mine = XML)
    4. Add the 'C:\folderName' (mine = 'C:\XML') in the path system variable. (btw, im using windows 8, for win7 users here's a link http://www.itechtalk.com/thread3595.html) :
      • windows key + r (run window)
      • type control panel then press enter
      • type path in search box
      • under System - click edit the system environment variable
      • Under the advanced tab - click environment variables
      • In the System variables look for Path > Edit > add ";C:\folderName"
      • or just type 'path' in search box located in your win8 charms ( I should have thought of that)
    5. Make it work (I only type xmllint and I had no idea why I cant see the xmllint window. This is a note for beginners)
      • copy a xml file into the xmllint directory
      • type xmllint --valid --noout fileName.xml

        If
        everything's fine, CONGRATS
        Else
        If you also have this warning : failed to load external entity "fileName.xml"
        -- they say its a bug so I downloaded an older version of libxml2 from http://xmlsoft.org/sources/win32/
        OR (I just saw this solution earlier)
        -- assign another folder to your xml files and run xmllint from there.
        In the command window : -cd C:\Users\user name\Documents\XML files
        -once you're inside it, type the xmllint commands e.g. 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

    0 讨论(0)
  • 2020-12-13 09:47

    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.

    0 讨论(0)
  • 2020-12-13 09:48

    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 ~]$ 
    
    0 讨论(0)
  • 2020-12-13 09:50

    Xmllint is part of libxml2-utils package. To install, on Linux use: apt install libxml2-utils

    0 讨论(0)
  • 2020-12-13 09:55

    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.

    0 讨论(0)
  • 2020-12-13 10:04

    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.

    0 讨论(0)
提交回复
热议问题