问题描述
我试图通过使用命令"xmllint"来检查cmd.exe是否有效,以示例中的格式显示xml文件:xmllint -schema Bookstore.xsd --noout Bookstore-XSD.xml但是结果是我看到了错误:
I've tried to check xml-file on validness with cmd.exe by using the command 'xmllint' as in the example:xmllint -schema Bookstore.xsd --noout Bookstore-XSD.xmlbut as a result, I saw the error:
'xmllint'无法识别为内部或外部命令,可操作程序或批处理文件.
'xmllint' is not recognized as an internal or external command, operable program or batch file.
我应该安装一些特定的库吗?如果可以的话,它必须在哪里(文件夹在哪里)?
Should I install some specific library? And if I should, where is it must be (what is the folder)?
推荐答案
xmllint
不是Windows的标准部分.通常在基于Unix的操作系统上使用.
xmllint
isn't a standard part of Windows. It's typically used on a Unix-based operating system.
您可以通过 cygwin 在Windows上作为 .另外,如果您使用Google提供的xmllint.exe
,则可能会有独立的Windows版本.
You can install it via cygwin on Windows as part of the libxml2 package. Alternatively, there might be a standalone Windows version of xmllint.exe
available if you Google for it.
这篇关于xmllint在Windows命令提示符下不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!