Fraser, Good to hear from you. Wow. That version goes back a bit.
Let me try to repeat back your request so that we're sure I understand it correctly. You would like elements of type xs:string to be always exported even if their value is None. You might take a look at the code that generates the export functions to see if there is some reasonably easy modification that would give you what you need. I believe the code that you would be interested in is in `generateDS.py` in the functions `generateExportFn_1` and `generateExportFn_3`. One of these handles the case where the element is optional (defined with minOccurs="0"). Look for the test for "StringType". It looks to me like you should be able to add generation of an `else` clause that gets you what you want. Hope this helps. Dave On Tue, Jul 31, 2018 at 01:51:22AM +0000, Fraser Hand wrote: > Hi There, > There was a change at Version 1.17a (5/20/2009) where: Modified > export of children of type xs:string so that (1) if None, not > exported and (2) if not None but an empty string, exported > (example "<aa></aa>"). > > Where at 1.16a you wrote out those tags. Version 1.16a > (2/16/2009) Generated export methods now check for empty content > and write out <xx ... /> rather than <xx ...></xx> if empty. > > Is there any way to reenable this? Ie get elements with None > written as <element/> > > Thanks, Fraser > > === www.eagle.co.nz > > This email is confidential and may be legally privileged. If > received in error please destroy and immediately notify us. > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > generateds-users mailing list > generateds-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/generateds-users -- Dave Kuhlman http://www.davekuhlman.org ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users