Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Base64 data

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Steve Loughran <steve.loughran AT gmail.com>
  • To: Elliotte Harold <elharo AT metalab.unc.edu>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Base64 data
  • Date: Wed, 7 Sep 2005 20:02:05 +0100

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



Archive powered by MHonArc 2.6.24.

Top of Page