Binary Serializations of the XML infoset

Axis2 is built on top of a XML info-set representation called OM and is independent of the angle bracket representation of the XML info-set. It is possible to have the Axis2 to work on the one of the other representation XML infoset. Among them the binary serialization is very important as it can yield high performance.

Axis2 reads the information via the XMLReader in the Stax interface and write the information via the XMLWriter interface. So the task of implementing the binary serialization support to Axis2 can be achieved by implementing an XMLReader and XMLWriter that reads and write to Binary representation of XML.

Among the Binary representations that are important to us may be

Another reason this could be very important:

My belief is that binary XML infoset only shows its real benefit with a typed pull parser. The reason: suppose you have a binary encoding of an integer, and then you use a string-based parser, you will end up decoding the binary into an int, converting to a string for the parser API and then back to an int in the deserialisation code.

I (DennisSosnoski) would personally disagree with the above assessment. A typed pull parser would definitely be nice, but even without this you can get substantial size and performance gains from a binary format. See my articles on devWorks at and for examples.