Before you start reading any article below, read this article(http://docs.oracle.com/cd/E17802_01/webservices/webservices/docs/1.6/tutorial/doc/SJSXP3.html) from Oracle first. It has a very good example for mapping XML parts to StAX API.

There are more Java API Examples from programcreek.