xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Örjan Reinholdsen <orjan.reinholdsen AT home.se>
- To: "'Elliotte Rusty Harold'" <elharo AT metalab.unc.edu>, <xom-interest AT lists.ibiblio.org>
- Subject: RE: [XOM-interest] Document encoding
- Date: Thu, 6 Feb 2003 17:33:35 +0100
Hi,
Thanks for that instruction, Elliotte.
I now understand that piggybacking information about what encoding I
want to transcode to, onto the encoding of the XML document is not a
good idea. So what I'll do is to add another attribute called
'targetEncoding' to the root element of my document and that solves my
problem cleanly.
Regards
/Örjan
-----Original Message-----
From: Elliotte Rusty Harold [mailto:elharo AT metalab.unc.edu]
Sent: den 6 februari 2003 13:20
To: Örjan Reinholdsen; xom-interest AT lists.ibiblio.org
Subject: Re: [XOM-interest] Document encoding
At 10:23 PM +0100 2/5/03, Örjan Reinholdsen wrote:
>What I want to know is the character encoding of the source XML
>document. I need this information to perform transcoding correctly,
>e.g. from UTF-8 (XML default) to UCS-2.
>
>I'v looked around in the API docs and tried variouse things, but
>whitout luck. Am I missing something or is it impossible?
It's deliberately impossible. Good processes don't depend on the
encoding of the source document. You can pick any supported encoding
for output, regardless of input encoding.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo AT metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| Processing XML with Java (Addison-Wesley, 2002) |
| http://www.cafeconleche.org/books/xmljava |
| http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
-
[XOM-interest] Document encoding,
Örjan Reinholdsen, 02/05/2003
- RE: [XOM-interest] Document encoding, Mike Fitzgerald, 02/05/2003
-
Re: [XOM-interest] Document encoding,
Elliotte Rusty Harold, 02/06/2003
- RE: [XOM-interest] Document encoding, Örjan Reinholdsen, 02/06/2003
Archive powered by MHonArc 2.6.24.