Discussions

XML & Web services: looking for dynamic java -> XML and XML -> java binding?

  1. My development team is looking to automate some of the XML stuff we deal with. Generally, we aregetting XML schemas that we can not control and either converting them into java objects (our own object model) or converting data from out object model into XML. I know that tools such as JAXB, Castor, JiBX, and others can do this, but they all require some form of compile time code generation. What we are looking for is something much closer to Hibernate. A tool where we can simply create a mapping file telling it how to go from our objects to a given schema and the tool will do the rest. This would mean that to add another schema is as simple as writting the mapping file and bouncing the app. I have read the following thread: http://www.theserverside.com/news/thread.tss?thread_id=30658 but it is two years old now. Surely things have changed dramatically in the Java/XML binding world since that thread. I have looked at JAXB, Castor, and JiBX and none of them fully support what we are looking for. Thanks for the help.
  2. Have you seen this? http://www.theserverside.com/discussions/thread.tss?thread_id=41508 It sounds as if it *might* be closer to what you are after than Castor etc