advertisement
Login | Register   
  Include Code  Search Tips
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   TIP BANK
Browse DevX
Sidebar 1. What Is XMLBeans?
Sidebar 2. What Is StAX?
Partners & Affiliates
advertisement
advertisement
advertisement
advertisement
 

Use the Best of StAX and XMLBeans to Stream XML Object Binding

Learn how to combine the StAX and XMLBeans APIs to leverage the benefits of each: StAX to parse and chunk incoming XML into a manageable size and XMLBeans to load the chunks into objects for processing. 


advertisement
t's almost impossible to ignore the impact that XML has had on today's applications, from the simplest client-side application storing user settings to an enterprise application with XML message passing. As a result, a number of frameworks and APIs have sprung up to simplify the task of reading and writing verbose XML files.

Each of these APIs focuses on solving a particular developer problem, such as providing an object-oriented view of XML through tools like XMLBeans and JAXB or an event view of XML through tools such as SAX and StAX. This article demonstrates how to combine two of these great APIs, XMLBeans (see Sidebar 1. What Is XMLBeans?) and StAX (see Sidebar 2. What Is StAX?), to obtain the benefits of each in your next application.


It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com.
Already a member?



advertisement