Suppose I have a XML file and its schema, I want to generate a
Java Object tree that is like the original XML schema but slightly different. So I guess I can use DOM or SAX to do the work. If I use JAXB or Castor I may have it problem as I want a different Object struture..
So without knowing too much about XML, here is what I am thinking --- Can I use some XML stylesheet stuff to "alter" the original XML and generate a XML that matches to my desired object struture ? If that's possible, then the second step is to use JXAB or Castor to work on the altered XML file and get the object tree. Does this make sense ?