HI, When I try to generate and save a very simple xml file using the attached java program I get the following exception:
Exception in thread "main" java.lang.ExceptionInInitializerError at org.apache.xml.serializer.ToStream.<init>(ToStream.java:112) at org.apache.xml.serializer.ToXMLStream.<init>(ToXMLStream.java:57) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou rce) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at org.apache.xml.serializer.SerializerFactory.getSerializer(SerializerF actory.java:91) at org.apache.xalan.transformer.TransformerIdentityImpl.createResultCont entHandler(TransformerIdentityImpl.java:214) at org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf ormerIdentityImpl.java:278) at TestXerces.testXerces(TestXerces.java:44) at TestXerces.main(TestXerces.java:17) Caused by: java.lang.NumberFormatException: For input string: "be found at http: //www.iana.org/assignments/character-sets" at java.lang.NumberFormatException.forInputString(Unknown Source) at java.lang.Integer.parseInt(Unknown Source) at java.lang.Integer.valueOf(Unknown Source) at java.lang.Integer.decode(Unknown Source) at org.apache.xml.serializer.Encodings.loadEncodingInfo(Encodings.java:3 93) at org.apache.xml.serializer.Encodings.<clinit>(Encodings.java:429) With Xerces-J 2.4.0 all worked fine. The result should be an xml file called "test.xml" in the current directory with the following content: <?xml version="1.0" encoding="UTF-8" ?> <root /> Any help would be greatly appreciated. Regards, Andreas Völker
TestXerces.java
Description: TestXerces.java
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]