users@fi.java.net

Re: Binary Encoded Floating Point

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Tue, 03 Oct 2006 13:04:52 +0200

Hi Wilfred,

The fi/samples contain a number of examples.

For example, the PrimitiveTypesWithElementContentSample example creates
an FI document using the SAX API that contains binary values for bytes,
ints and floats [2].

Does this help?

I have just created a simple command line utility that takes a schema
and an XML document and will convert the XML document to an FI document,
and where appropriate convert text content and attribute values to
binary data based on the XS data types. I plan to blog about this today,
when done i will post a link.

Paul.

[1] http://fisheye5.cenqua.com/browse/fi/samples/src/samples/typed
[2]
http://fisheye5.cenqua.com/browse/~raw,r=1.4/fi/samples/src/samples/typed/PrimitiveTypesWithElementContentSample.java




Wilfred Springer wrote:
> All,
>
> I am trying to use Fast Infoset to serialize an XML document holding
> geographical data. Hexdumping the output reveals that the longitudes and
> latitudes are still serialized as text.
>
> There are several documents that discuss the fact that the framework
> should be able to serialize numbers to a binary equivalent based on some
> patterns, but I can't figure out how to do that.
>
> Any clues?
>
> Wilfred
>
> *Wilfred Springer* | Software Architect | TomTom |
> wilfred.springer_at_tomtom.com <mailto:wilfred.springer_at_tomtom.com> | +31
> 646 720 990
>

-- 
| ? + ? = To question
----------------\
    Paul Sandoz
         x38109
+33-4-76188109