I am using the StAX API to serialize a document. Is there any way to make sure that floating point numbers are encoded in a binary way, instead of the default textual encoding?
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 .
See this blog  for a command line utility to convert an XML document, given a XML schema, to a typed fast infoset document.
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.