"Dr. Robert Spiske" wrote:
> The class org.apache.xerces.parsers.SAXParser has a  "xmlDecl(...)"  
> member to get the information.
> 
> Is there a way to get there using the XMLReader ?

No, there isn't. But if you always write your documents
using a specific encoding, such as UTF-8 or ISO-8859-1,
then you can write the XML declaration line correctly.
(Please note that only encodings such as UTF-8, UTF-16,
etc. are capable of saving all the Unicode characters
that are valid in XML documents; ISO-8859-1, for example,
is not able to do this.)

However, if you want to preserve the encoding used in
the original document, then you will need to create a
subclass of one of the Xerces parsers so that you can
gain access to this information. But it depends on
which version of Xerces you are using because they
provide the information in different ways.

-- 
Andy Clark * IBM, TRL - Japan * [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to