G
Ghislain
Hello,
I wrote a simple java application reading xml files and therefore
used SAX. It has been working very fine for years with jdk 5. Some
users updated to java 6 and reported me errors. I checked the xml
input and it doesn't contain any error (by the way it runs fine with
java 5). Step by step I ran the reader and discovered that the with
JDK 6 the XMLreader doesn't read properly a node's attributes.
Below, you will find my constructor.
Thank you for your help,
Ghislain
package xml2office;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
public class Xml2Office extends DefaultHandler {
public Xml2Office(String[] args) {
super();
try {
XMLReader xr = XMLReaderFactory.createXMLReader();
xr.setContentHandler( this );
xr.parse(input);
}catch ( Exception e ) {
System.err.println("Erreur");
e.printStackTrace();
}
}
}
I wrote a simple java application reading xml files and therefore
used SAX. It has been working very fine for years with jdk 5. Some
users updated to java 6 and reported me errors. I checked the xml
input and it doesn't contain any error (by the way it runs fine with
java 5). Step by step I ran the reader and discovered that the with
JDK 6 the XMLreader doesn't read properly a node's attributes.
Below, you will find my constructor.
Thank you for your help,
Ghislain
package xml2office;
import org.xml.sax.*;
import org.xml.sax.helpers.*;
public class Xml2Office extends DefaultHandler {
public Xml2Office(String[] args) {
super();
try {
XMLReader xr = XMLReaderFactory.createXMLReader();
xr.setContentHandler( this );
xr.parse(input);
}catch ( Exception e ) {
System.err.println("Erreur");
e.printStackTrace();
}
}
}