Skip to main content

Blaise Doughan: Handle the Middle of a XML Document with JAXB and StAX

Blaise Doughan demonstrates how to Handle the Middle of a XML Document with JAXB and StAX:

Recently I have come across a lot of people asking how to read data from, or write data to the middle of an XML document. In this post I will demonstrate how this can be done using JAXB with StAX. Note: JAXB (JSR-222) and StAX (JSR-173) implementations are included in the JDK/JRE since Java SE 6...