For beta 4 I have code in place to generate a binding definition from a list of classes, with various types of customizations that can be applied (options for how the XML names are generated from that Java names, for whether attributes are used for simple primitives and such, custom serializer/deserializers for specific types, etc.). This actually works pretty well. It might make sense to layer XDoclet support on top of this, so that you'd only need to specify the equivalent of customizations to the default handling. If you think you're going to have time to work in this area, Jonathan, I can send you a drop of the code with basic instructions.
A related program takes the binding definition and class files and generates a schema for the marshalled XML documents. This is trickier than the binding generation, and at times has to leave holes to be filled in by the developer (with comments in the schema to say where additional information is needed), but also seems to work pretty well in my testing.
I'm hoping to have a preliminary beta 4 release out by the end of the month, but at this point I'm still slogging through the code generation changes. The binding and schema generation components are actually independent of this, so if I end up slipping any more on the full beta release I'll at least get these two out as standalone components that can be used with beta 3x.
- Dennis
Jonathan Howell wrote:
I have some XDoclet stuff to do this that (you just have to tell it things it can't figure out by looking at your code, like which fields are optional, and what your ArrayLists are lists of), that I have been meaning to contribute to the project. It's on my sadly very long to do list to clean up the code and send it to Dennis.
Jonathan
-----Original Message----- From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: 11/9/2004 11:41 AM Subject: RE: [jibx-users] Automatic Generation of Binding Definition XML Files
u can use xdoclet to do that.
-----Original Message----- From: babloosony [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 09, 2004 5:03 PM To: [EMAIL PROTECTED] Subject: [jibx-users] Automatic Generation of Binding Definition XML Files
Hi All,
I am a newbie to JiBX. Given a java class for a xml document, how can I automatically generate JiBX Binding Definition XML file instead of manually coding. Are there any freely available tools for this purpose.
Thank you for your time and reply, Kumar.
------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jibx-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jibx-users