【发布时间】:2016-11-30 20:49:28
【问题描述】:
xmllint 与http://somesite.xml 一起工作正常
但它不适用于https://somesite.xml
xmllint https://somesite.xml
warning: failed to load external entity "https://somesite.xml"
【问题讨论】:
-
我好像遇到了同样的问题。
-
同理。 xmllint 不适用于 HTTPS 上的 DTD。
-
如果您使用远程 DTD 的架构,我能想到的唯一解决方法是在本地下载 DTD 并将架构文件替换为:
schemaLocation="file:///tmp/my-path.xsd"
标签: xmllint