Short Answer
It is not possible to use JAXB's Binder
with StAX
(Slightly) Longer Answer
A JAXB Binder
is used to sync changes between XML infoset nodes and JAXB objects. The only XML info set nodes that are required to be supported by a JAXB (JSR-222) implementation are instances of org.w3c.dom.Node
. StAX doesn't really fit this model, and wouldn't work well with Binder
methods like: