Page 1 of 1

xmlvalid documentation error?

PostPosted: Tue Nov 13, 2018 4:00 pm
by Kouichi_C_Nakamura
According to this https://docs.openmicroscopy.org/bio-formats/5.9.2/users/comlinetools/xml-validation.html, the following should work:

Code: Select all
tiffcomment /path/to/file.ome.tiff | xmlvalid -


But as far as I tried in Windows 10, I get the following error:

Code: Select all
Exception in thread "main" java.io.FileNotFoundException: - (The system cannot find the file specified)
   at java.io.FileInputStream.open0(Native Method)
   at java.io.FileInputStream.open(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at java.io.FileInputStream.<init>(Unknown Source)
   at loci.formats.tools.XMLValidate.main(XMLValidate.java:81)


The hyphen does not seem to be working.

I confrimed that the following works:
Code: Select all
tiffcomment "/path/to/file.ome.tiff" | xmlvalid "/path/to/file.ome.tiff"


Is the example in the documentation an error? Or have I misunderstood something?

Re: xmlvalid documentation error?

PostPosted: Tue Nov 13, 2018 4:05 pm
by jmoore
Hi Kouichi,

looking at the code, can you try omitting the hyphen? If so, this is (primarily) a documentation bug.

Cheers,
~Josh

Re: xmlvalid documentation error?

PostPosted: Tue Nov 13, 2018 5:10 pm
by Kouichi_C_Nakamura
Bang on! I'm now editing the documentation a bit. So soon I will make a PR including this fix.

BTW, although the documentation says this will perform both the extraction and validation, I only see the output of xmlvalid in Command Prompt console. Is this the expected behavior?

Re: xmlvalid documentation error?

PostPosted: Tue Nov 13, 2018 5:30 pm
by Kouichi_C_Nakamura

Re: xmlvalid documentation error?

PostPosted: Wed Nov 14, 2018 10:41 am
by jmoore
Thanks, Kouichi. We can continue the conversation there. ~J