eSCAPe Library is a free and open source, Java-based library containing an easy to use API for loading, interacting with, and saving SCAP(scap.nist.gov) content.
The Enhanced SCAP Editor is built on top of eSCAPe Library and is a good example of how to use it.