Hi Dave, > Vincent - > > I've created a schema and an instance document that tries to test > several of the problems you've identified. I've attached the > following:
I'm fraid I did not receive the attachment, but I will look at it as soon as I receive it. > > It seems to me that the omitted values are handled correctly. When > a value is omitted, the generated code does not export the > attribute. Am I right about this? Is the attached code doing what > we want? Is it possible that you are using an older version of > generateDS.py? Yes, I've downloaded and installed the latest version and it seems to be fixed already! > Thanks for the suggestion about JAXB. I knew about XMLBeans, but > not JAXB. I'll take a look. While XMLBeans define a strict mapping between XML and Java objects, JAXB generates Java classes based on the XSD (or DTD) definition. So, its much more close to generateDS than XMLBeans. http://java.sun.com/developer/technicalArticles/WebServices/jaxb/index.html > > By the way, I don't know whether you have looked at Jython. The > Java code generated by XMLBeans is usable by Jython. I suspect > that Jython could also import and use the code generated by JAXB. > Not trying to talk you out of using generateDS.py, but in a more > Java oriented environment or shop, ... Well, I was a java developer in my previous job. Now I just use what suits the best for the task ahead. We mainly work with Python here, which works fine for most things. Regards, Vincent ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users