Please allow xmlstarlet val to read from stdin.
This is especially useful in scenarios where an XML file is generated by some other tool, or wherexmlstarlet is running inside a container and cannot access the file system directly.
Steps to reproduce:
a.xml.b.xsd.cat a.xml | xmlstarlet val --xsd b.xsd --errExpected results:
Actual results:
couldn't read file '--err'
--err - invalid
Workaround I'm using (inside a
Dockerfile):Use
-to indicate stdin, e.g.,cat a.xml | xmlstarlet val --xsd b.xsd --err -Thanks Noam! That works.
Would be good to explain that in the help output.
I think this ticket can be closed now.