安装xmllint [英] Installing xmllint
问题描述
我需要从以下网站安装xmllint的帮助: http://xmlsoft.org/sources/win32/
I needed help installing xmllint from this website: http://xmlsoft.org/sources/win32/
尤其是,我不确定应该下载哪个文件-单击预编译的Windows二进制文件的链接时,我会看到几个文件的列表,并且不确定如何继续.
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.
- 从 ftp://ftp.zlatkovic.com/libxml/ 下载iconv,libxml2,libxmlsec和zlib>
- 提取zip文件,然后将所有文件复制到每次下载的bin文件夹中.
- 将文件粘贴到文件夹中(mine = XML)
- 在路径系统变量中添加'C:\ folderName'(mine ='C:\ XML').(顺便说一句,即时通讯使用Windows 8,对于Win7用户,这里是链接 http://www.itechtalk.com/thread3595.html):
- Windows键+ r(运行窗口)
- 键入控制面板,然后按Enter
- 在搜索框中输入路径
- 在系统"下-单击编辑系统环境变量
- 在高级标签下-单击环境变量
- 在系统变量中查找路径">编辑",然后添加; C:\ folderName"
- 或只需在您的win8超级按钮中的搜索框中键入路径" (我应该已经想到了)
- Download iconv, libxml2, libxmlsec , zlib from ftp://ftp.zlatkovic.com/libxml/
- Extract the zip file then copy all the files in the bin folder of each download.
- Paste the files in a folder (mine = XML)
- 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)
- 将xml文件复制到xmllint目录中
- 类型
xmllint --valid --noout fileName.xml
如果
一切正常,恭喜您
其他
如果您还有这个 warning:无法加载外部实体"fileName.xml"
-他们说这是一个错误,所以我从 http://xmlsoft.org/下载了较旧版本的libxml2 sources/win32/
或(我之前刚刚看到了此解决方案)
-为您的xml文件分配另一个文件夹,然后从那里运行xmllint.
在命令窗口中:-cd C:\ Users \用户名\ Documents \ XML文件
-一旦进入其中,请输入xmllint命令,例如xmllint --valid --noout fileName.xml
)
- 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
)
安装:
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
错误:
https://bugzilla.redhat.com/show_bug.cgi?id=863166
这篇关于安装xmllint的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!