xmllint
does work fine with http://somesite.xml
But it doesn't work with https://somesite.xml
xmllint https://somesite.xml
warning: failed to load external entity "https://somesite.xml"
As a workaround, you could use another utility like curl
or wget
to download the file first, then pipe it to xmllint
.
curl --silent "https://somesite.xml" | xmllint -
Notes:
-
("hyphen/minus") for xmllint
's filename argument to get its XML input from the standard input stream instead of from a file or URL.--silent
(-s
) to suppress curl
progress/error messages, to prevent those from being parsed by xmllint
.This should work for xmllint
's XML input over HTTPS, but not sure about a DTD or schema; you might need to download that to a local file first, using a separate curl
or wget
command.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With