Hi Neil,
this is basically what I am doing :
org.apache.xerces.parsers.DOMParser xerces
= new org.apache.xerces.parsers.DOMParser();
xerces.setFeature("http://xml.org/sax/features/validation", true);
Handler handler = new Handler();
xerces.setErrorHandler(handler);
xerces.parse(url);
plus some extra bits. The handler is just throwing
stuff. When run the url happens to be
http://pcjhb.software-ag.de/xml/closedXml/Instances/m1.xml
This is a file that starts
<?xml version="1.0" encoding="ISO-8859-1"?>
All this is not a problem by itself, i.e. it runs well in
any Java application it is included. It, however fails
when run in an applet and with version 1.4.1. It works,
however, in an applet with a previous version (some 1.3.x).
I have no idea,
Juliane.
-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 11. Juli 2001 21:12
An: [EMAIL PROTECTED]
Betreff: Re: Encoding Error with Version 1.4.1
Hi Julian,
Feeding the parser a file with an encoding declaration of ISO-8859-1 works
fine for me. So how does your applet get the file to the parser? Does the
parser an InputStream of some kind, or supply it directly with a filename?
Cheers,
Neil
Neil Graham
XML Parser Development
IBM Toronto Lab
Phone: 416-448-3519, T/L 778-3519
E-mail: [EMAIL PROTECTED]
"Harbarth, Juliane" <[EMAIL PROTECTED]> on 07/11/2001
10:33:20 AM
Please respond to [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject: Encoding Error with Version 1.4.1
Hello,
I upgraded a Java applet, that reads a file, parses it, and
displays the result as a Tree using DOM & Swing, to Xerces-J
1.4.1. The parse now yields :
[Fatal Error] :0:0: The encoding "ISO-8859-1" is not supported.
This used to work with previous Xerces-J versions, and the
error did not happen in any of my Java applications that use
Xerces-J 1.4.1.
Can anybody explain that ?
Kind Regards,
Juliane.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]