Now write a java program that uses SAX parser to print the contents of the above XML document. The java program you write should use the SAX event handling functions. As an output, you should see the ontology of your document and descriptive prefixes related to corresponding data content.
You are not required to write a working java program. If you are not familar with Java, you can write a pseudo code or an essay to explain how it works instead.
Hint for java program, you can follow the Java example "TrainReader" in chapter 12 - Simple API for XML (SAX). Your code should be in only one java file, and only this java file will be turned in as an attachment. You should test your code before submitting the assignment.