help on loci.formats.tools.XMLValidate
Posted: Thu Nov 15, 2018 2:35 pm
Now I'm using command line tools to review and edit OME-XML. But more often form within MATLAB using the `system` MATLAB function than directly from Command Prompt.
Then, although it's hard to say if this is really worthwhile, I thought why don't we have MATLAB function for OME-XML. The syntax is as follows:
This might be a good addition to Bio-Formats MATLAB toolbox (or not)?
So far I've managed to get `loci.formats.tools.TiffComment` and `loci.formats.tools.XMLIndent` working.
But I can't use `loci.formats.tools.XMLValidate`. Can I get your help, please?
Looking at the source code below,
https://github.com/ome/bio-formats-tool ... idate.java
the main usage appears to be `loci.formats.tools.XMLValidate.main(String[] args)`. So I prepared JavaArray of String args, which contains a file path for an XML file or OME.TIFF image file (i.e. args[0] = java.lang.String("raw.xml") or args[0] = java.lang.String("image01.ome.tif") ). But nothing happens.
I can validate the XML of the same files using the command line tool `xmlvalid`.
Then, although it's hard to say if this is really worthwhile, I thought why don't we have MATLAB function for OME-XML. The syntax is as follows:
- Code: Select all
xml = bfTiffComment(imgfile)
xml = bfTiffComment(xmlfile)
[xml,res] = bfTiffComment(____,'Param',value)
% The pameters include 'OutXmlFile', 'NewXML', 'Indent', and 'XMLvalidation'.
This might be a good addition to Bio-Formats MATLAB toolbox (or not)?
So far I've managed to get `loci.formats.tools.TiffComment` and `loci.formats.tools.XMLIndent` working.
But I can't use `loci.formats.tools.XMLValidate`. Can I get your help, please?
Looking at the source code below,
https://github.com/ome/bio-formats-tool ... idate.java
the main usage appears to be `loci.formats.tools.XMLValidate.main(String[] args)`. So I prepared JavaArray of String args, which contains a file path for an XML file or OME.TIFF image file (i.e. args[0] = java.lang.String("raw.xml") or args[0] = java.lang.String("image01.ome.tif") ). But nothing happens.
I can validate the XML of the same files using the command line tool `xmlvalid`.