Changeset 6123


Ignore:
Timestamp:
04/14/10 11:12:05 (10 years ago)
Author:
melissa
Message:

Hopefully fixed XML parsing problems introduced in r6000.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/4.1/components/common/src/loci/common/XMLTools.java

    r6000 r6123  
    283283    throws IOException 
    284284  { 
    285     parseXML(new RandomAccessInputStream(xml), handler); 
     285    Exception e = null; 
     286    try { 
     287      SAXParser parser = SAX_FACTORY.newSAXParser(); 
     288      parser.parse(new ByteArrayInputStream(xml), handler); 
     289    } 
     290    catch (ParserConfigurationException exc) { 
     291      e = exc;  
     292    } 
     293    catch (SAXException exc) { 
     294      e = exc; 
     295    } 
     296    if (e != null) { 
     297      IOException io = new IOException(); 
     298      io.initCause(e); 
     299      throw io; 
     300    } 
    286301  } 
    287302 
Note: See TracChangeset for help on using the changeset viewer.