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: "Michael Kay" <mike AT saxonica.com>
  • To: "'Elliotte Harold'" <elharo AT metalab.unc.edu>, <Perry.Hoekstra AT mpls.frb.org>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Base64 data
  • Date: Thu, 8 Sep 2005 09:46:16 +0100

There is code in Saxon to handle conversion of all the XMLSchema-defined
primitive types, including Base64.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: xom-interest-bounces AT lists.ibiblio.org
> [mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of
> Elliotte Harold
> Sent: 07 September 2005 19:23
> To: Perry.Hoekstra AT mpls.frb.org
> Cc: xom-interest AT lists.ibiblio.org
> Subject: Re: [XOM-interest] Base64 data
>
> 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.
>
> --
> ?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
> _______________________________________________
> XOM-interest mailing list
> XOM-interest AT lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
>






Archive powered by MHonArc 2.6.24.

Top of Page