BOX provides a binary encoding for XML that is:

BOX may be created from a DOM Document using BOXDOMEncoderImpl or through a series of methods calls in BOXEmitter. To encode XML in the BOX format using a DOM Document you

See the User's Guide for examples of this and using BOXEmitter.