Changeset 7570


Ignore:
Timestamp:
01/21/11 13:17:22 (9 years ago)
Author:
melissa
Message:

Sanitize the XML before we parse it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/components/bio-formats/src/loci/formats/in/MetamorphTiffReader.java

    r7568 r7570  
    214214    MetamorphHandler handler = new MetamorphHandler(getGlobalMetadata()); 
    215215    for (IFD ifd : ifds) { 
    216       XMLTools.parseXML(ifd.getComment(), handler); 
     216      String xml = XMLTools.sanitizeXML(ifd.getComment()); 
     217      XMLTools.parseXML(xml, handler); 
    217218    } 
    218219 
     
    420421    TiffParser parser = new TiffParser(s); 
    421422    IFD firstIFD = parser.getFirstIFD(); 
    422     XMLTools.parseXML(firstIFD.getComment(), handler); 
     423    String xml = XMLTools.sanitizeXML(firstIFD.getComment()); 
     424    XMLTools.parseXML(xml, handler); 
    423425    s.close(); 
    424426  } 
Note: See TracChangeset for help on using the changeset viewer.