What I did was to look at the similar Xerces examples and I cut/copied/pasted a few lines of code (mostly just parser options that look differently now)
See the orginals at: http://www-4.ibm.com/software/developer/education/tutorial-prog/parsing.html
D.K.S.