Ignore:
Timestamp:
11/21/06 13:35:34 (6 years ago)
Author:
sys
Message:

bug dans le reader qui dupliquait la déclaration xml + suppr rewindDeclaration non utilisé et manifestement bugué

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Res_Piccolo/com/bluecast/xml/Piccolo.java

    r7369 r7396  
    3232import org.xml.sax.ext.DeclHandler; 
    3333import org.xml.sax.ext.LexicalHandler; 
     34import org.xml.sax.helpers.DefaultHandler; 
    3435 
    3536import com.bluecast.io.FileFormatException; 
     
    7273        public static void main(String[] pArgs){ 
    7374                try { 
    74                         Piccolo vParser = new Piccolo(); 
    75                         vParser.parse(new InputSource(new ByteArrayInputStream("<test/>".getBytes("UTF-8"))));//<?xml version=\"1.0\" encoding=\"UTF-8\"?> 
     75                        Piccolo vParser = new Piccolo(false); 
     76                        vParser.setContentHandler(new DefaultHandler()); 
     77                        vParser.parse(new InputSource(new ByteArrayInputStream("<test><!-- &amp;dpi=300--></test>".getBytes("UTF-8"))));//<?xml version=\"1.0\" encoding=\"UTF-8\"?> 
    7678                } catch (Exception e) { 
    7779                        e.printStackTrace(); 
Note: See TracChangeset for help on using the changeset viewer.