• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to do dynamic Java-XML binding?

 
Ranch Hand
Posts: 85
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The project that I am working on is finally taking a look at doing somekind of Java <--> XML binding. Specifically, we receive XML files that need to be turned into Java objects (our object model). Those objects are then processed and turned into different XML files to be sent off to clients.

What we are looking for is a framework that allows us to do the marshalling/unmarshalling dynamically. By this I mean without having to worry about any compile time code generation. The ideal would be that, in order to handle a new XML schema, all we would need to do is provide a mapping/binding file, bounce the system, and the system should be able to handle the new schema.

Is this possible to do?

We have looked at JAXB, Castor, and JiBX, but all of these libraries require code generation.

We have also taken a cursory look at TopLink, but I don't think it is free and I am not sure if it can handle this either. Anyone know the pricing model for TopLink?
[ July 19, 2006: Message edited by: Chris Johnston ]
 
Bartender
Posts: 1844
Eclipse IDE Ruby Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You could use XSLT to convert the incoming XML to a standard schema, which is then parsed, processed, and outputted.
 
I love a good mentalist. And so does this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic