Changeset 5681 for branches/4.1


Ignore:
Timestamp:
11/10/09 13:50:11 (11 years ago)
Author:
melissa
Message:

Ensure that the XML string starts with '<'.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/bio-formats/src/loci/formats/in/IvisionReader.java

    r5618 r5681  
    219219 
    220220    if (xmlFound) { 
    221       String xml = 
    222         in.readString((int) (in.length() - in.getFilePointer())).trim(); 
    223       xml = xml.substring(0, xml.lastIndexOf(">") + 1); 
     221      String xml = in.readString((int) (in.length() - in.getFilePointer())); 
     222      xml = xml.substring(xml.indexOf("<"), xml.lastIndexOf(">") + 1); 
    224223      IvisionHandler handler = new IvisionHandler(); 
    225224      XMLTools.parseXML(xml, handler); 
Note: See TracChangeset for help on using the changeset viewer.