问题
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.xml but as a result, I saw the error:
'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)?
回答1:
xmllint
isn't a standard part of Windows. It's typically used on a Unix-based operating system.
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.
回答2:
You can find a standalone Windows executable at the xmllint
download page at Google Code.
来源:https://stackoverflow.com/questions/19145870/xmllint-isnt-working-in-windows-command-prompt