@@ -0,0 +1,1514 @@
+//%0A// DumpOMEXML.java%0A//%0A%0Aimport java.io.IOException;%0Aimport loci.common.services.DependencyException;%0Aimport loci.common.services.ServiceException;%0Aimport loci.common.services.ServiceFactory;%0Aimport loci.formats.FormatException;%0Aimport loci.formats.ImageReader;%0Aimport loci.formats.meta.IMetadata;%0Aimport loci.formats.services.OMEXMLService;%0A%0A/**%0A * Extracts and prints out the OME-XML for a given file.%0A *%0A * %3Cdl%3E%3Cdt%3E%3Cb%3ESource code:%3C/b%3E%3C/dt%3E%0A * %3Cdd%3E%3Ca href=%22http://trac.openmicroscopy.org.uk/ome/browser/bioformats.git/components/bio-formats/utils/DumpOMEXML.java%22%3ETrac%3C/a%3E,%0A * %3Ca href=%22http://git.openmicroscopy.org/?p=bioformats.git;a=blob;f=components/bio-formats/utils/DumpOMEXML.java;hb=HEAD%22%3EGitweb%3C/a%3E%3C/dd%3E%3C/dl%3E%0A */%0Apublic class DumpOMEXML %7B%0A%0A  public static void main(String%5B%5D args) throws Exception %7B%0A    if (args.length == 0) %7B%0A      System.out.println(%22Usage: java DumpOMEXML file1 file2 ...%22);%0A      return;%0A    %7D%0A    for (int i=0; i%3Cargs.length; i++) dumpOMEXML(args%5Bi%5D);%0A  %7D%0A%0A  public static void dumpOMEXML(String path) throws FormatException,%0A    IOException, DependencyException, ServiceException%0A  %7B%0A    ServiceFactory serviceFactory = new ServiceFactory();%0A    OMEXMLService omexmlService =%0A      serviceFactory.getInstance(OMEXMLService.class);%0A    IMetadata meta = omexmlService.createOMEXMLMetadata();%0A%0A    ImageReader r = new ImageReader();%0A    r.setMetadataStore(meta);%0A    r.setId(path);%0A    r.close();%0A    String xml = omexmlService.getOMEXML(meta);%0A    System.out.println(xml);%0A  %7D%0A%0A%7D%0A

Add simple example for dumping converted OME-XML.