Reflection & SAXP Approach:
Our executive Reflection SAXP Approach - Executive Summary diagram shows
the goal of our conversion of a XML Report (which is XML stream with
XML tags) to Java beans:
To show the details of how our approach is done in Java using both Reflection
and SAXP, we need to present the actual Java code. Our one-to-one conversion from
MyFirstBeanXMLFileConversion.xml to MyFirstBean Class Data Objectis a good example
of how we did the conversion. The code is actually is very simple and straight forward.
The following links are the Java code for Java classes used to handle the conversions:
Constants.java
PrimitiveFieldTypeDataObject.java
SAXParseDataObject.java
FieldsParser.java
SAXParse2MyFirstBean.java
Readers my request the code for the more complex beans conversion by emailing a request to: