xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
- From: "Huijzer, Arjan" <arjan.huijzer AT capgemini.com>
- To: <steve.loughran AT gmail.com>, <xom-interest AT lists.ibiblio.org>
- Subject: Re: [XOM-interest] Base64 data
- Date: Thu, 8 Sep 2005 09:38:16 +0200
There is a Jakarta Commons project that has classes to encode and decode
base64 strings.
http://jakarta.apache.org/commons/codec/
Arjan Huijzer
Capgemini B.V.
Web Enablement & Portals
T: +31 (0)6 2459 3651
E: arjan.huijzer AT capgemini.com
-----Oorspronkelijk bericht-----
Van: xom-interest-bounces AT lists.ibiblio.org namens Steve Loughran
Verzonden: wo 9/7/2005 21:02
Aan: Elliotte Harold
CC: xom-interest AT lists.ibiblio.org
Onderwerp: Re: [XOM-interest] Base64 data
On 9/7/05, Elliotte Harold <elharo AT metalab.unc.edu> wrote:
> You're way, way off base. XML is about text. XOM is about XML. XOM will
> give you the text content of any element you like. It makes no effort to
> interpret that text. That's up to you. There's no reason to expect XOM
> to decode the base-64 text for you any more than it would turn the
> string "12" into the int 12 or the string "2005-09-07" into a Date
> object. There are an infinite number of different possible types that
> may be encoded in the text of the XML document. Base-64 is just one more
> possibility for which XOM offers no particular support.
>
> You'll need to take the text XOM gives you and pass it to some method
> that decodes that as Base-64 data. However, XOM won't do that for you.
There is some code in some sun package to do it, otherwise apache axis
has a class, a class that I have attached. No external dependencies
apart from an error string that you can replace with your own.
-steve
This message contains information that may be privileged or confidential and
is the property of the Capgemini Group. It is intended only for the person to
whom it is addressed. If you are not the intended recipient, you are not
authorized to read, print, retain, copy, disseminate, distribute, or use
this message or any part thereof. If you receive this message in error,
please notify the sender immediately and delete all copies of this message.
-
[XOM-interest] Base64 data,
Perry . Hoekstra, 09/07/2005
-
Re: [XOM-interest] Base64 data,
Elliotte Harold, 09/07/2005
- Re: [XOM-interest] Base64 data, Steve Loughran, 09/07/2005
- Re: [XOM-interest] Base64 data, Michael Kay, 09/08/2005
- <Possible follow-up(s)>
- Re: [XOM-interest] Base64 data, Huijzer, Arjan, 09/08/2005
-
Re: [XOM-interest] Base64 data,
Elliotte Harold, 09/07/2005
Archive powered by MHonArc 2.6.24.