We're Hiring!

xmlvalid documentation error?

Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats
Please note:
Historical discussions about the Bio-Formats library. Please look for and ask new questions at https://forum.image.sc/tags/bio-formats

If you are having trouble with image files, there is information about reporting bugs in the Bio-Formats documentation. Please send us the data and let us know what version of Bio-Formats you are using. For issues with your code, please provide a link to a public repository, ideally GitHub.

xmlvalid documentation error?

Postby Kouichi_C_Nakamura » Tue Nov 13, 2018 4:00 pm

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?
Kouichi_C_Nakamura
 
Posts: 165
Joined: Thu Oct 19, 2017 1:35 pm

Re: xmlvalid documentation error?

Postby jmoore » Tue Nov 13, 2018 4:05 pm

Hi Kouichi,

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

Cheers,
~Josh
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany

Re: xmlvalid documentation error?

Postby Kouichi_C_Nakamura » Tue Nov 13, 2018 5:10 pm

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?
Kouichi_C_Nakamura
 
Posts: 165
Joined: Thu Oct 19, 2017 1:35 pm

Re: xmlvalid documentation error?

Postby Kouichi_C_Nakamura » Tue Nov 13, 2018 5:30 pm

Kouichi_C_Nakamura
 
Posts: 165
Joined: Thu Oct 19, 2017 1:35 pm

Re: xmlvalid documentation error?

Postby jmoore » Wed Nov 14, 2018 10:41 am

Thanks, Kouichi. We can continue the conversation there. ~J
User avatar
jmoore
Site Admin
 
Posts: 1591
Joined: Fri May 22, 2009 1:29 pm
Location: Germany


Return to User Discussion [Legacy]

Who is online

Users browsing this forum: No registered users and 1 guest