xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: Elliotte Harold <elharo AT metalab.unc.edu>
- To: John Cowan <jcowan AT reutershealth.com>
- Cc: xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] CDATA sections
- Date: Thu, 03 Feb 2005 16:57:04 -0500
John Cowan wrote:
Serializer must have a method that knows, e.g., that U+0100 isn't
representable in Latin-1, so that it can write out "Ā" or the like
when serializing it. Exposing that method will be essential to get
CDATASerializer correct, since CDATASerializer is generic -- it will
need to accept an encoding argument in the constructor and pass it to
the Serializer constructor.
XOM does have such a method, but it's on the wrong side of 80/20 for the published API.
My point is that this functionality is not all that hard to reinvent, especially if
1. You're using Java 1.4 or later, in which case it's built into the JDK
or
2. You only care about the easy encodings: Unicode, Latin-1, ASCII, and some of the Asian character sets
or
3. You can borrow the code from XOM
All you need is one of those to be true to make this a pretty straight forward task.
--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim
-
Re: [XOM-interest] CDATA sections,
Elliotte Harold, 02/03/2005
-
Re: [XOM-interest] CDATA sections,
John Cowan, 02/03/2005
-
Re: [XOM-interest] CDATA sections,
Elliotte Harold, 02/03/2005
-
Re: [XOM-interest] CDATA sections,
John Cowan, 02/03/2005
- Re: [XOM-interest] CDATA sections, Elliotte Harold, 02/03/2005
-
Re: [XOM-interest] CDATA sections,
John Cowan, 02/03/2005
-
Re: [XOM-interest] CDATA sections,
Elliotte Harold, 02/03/2005
-
Re: [XOM-interest] CDATA sections,
John Cowan, 02/03/2005
Archive powered by MHonArc 2.6.24.