I sent this note on 1/18 but have not received a response yet. I am trying
to switch over to your  XML4J 4.0  release before our next release but need
help
with this one item.
Thanks.
Sally Nemes


EMMS Subsystem Development, IBM Software Group
Internet Mail: [EMAIL PROTECTED]
T/L 975-2872,  External (561) 862-2872
IMAD 4181
8051 Congress Avenue
Boca Raton, Florida 33487

---------------------- Forwarded by Sally Nemes/Boca Raton/IBM on
01/28/2002 03:05 PM ---------------------------

Sally Nemes
01/18/2002 01:30 PM

To:    [EMAIL PROTECTED]
cc:
From:  Sally Nemes/Boca Raton/IBM@IBMUS
Subject:    Getting Encoding from Processing Instruction


I am trying to move up to your latest level - XML4J 4.0 Beta I was using
xerces-1_4_2. I was using the method getEncoding in the Document class
but now that you have repackaged I switched to the getEncoding method
in the CoreDocumentImpl class. I get a null returned. The encoding I have
specified in the first processing instruction in the document is:
<?xml version="1.0" encoding="windows-1252"?> .

The code is:
String codePage = ((CoreDocumentImpl)itemdoc).getEncoding();

where:
Document itemdoc = parser.parse(arg[0]);

My IDE is VisualAge for Java. When I look at the variable list, the value
for
encoding and actualEncoding for my XML document after it is parsed by
Xerces is null. Please tell me how to get the encoding that is specified in
the ProcessingInstruction.
Thanks.
Sally Nemes

EMMS Subsystem Development, IBM Software Group
Internet Mail: [EMAIL PROTECTED]
T/L 975-2872,  External (561) 862-2872
IMAD 4181
8051 Congress Avenue
Boca Raton, Florida 33487



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

Reply via email to