Howdy, I've found that if an element has more than 1 max occurrences that it will be initialized as a list but is not compared correctly in the "hasContent_" method. This only causes an extra tag to be printed out instead of truncating the end with " />". A fix I've found to work was in the "generateHascontentMethod" function, change "wrt(' self.%s is not None' % (name, ))" to
" if child.getMaxOccurs() > 1: wrt(' self.%s != []' % (name, )) else: wrt(' self.%s is not None' % (name, )) " as well as change "wrt(' self.valueOf_ is not None")" to "wrt(' self.valueOf_ is not \'\'')" due to all of the valueOf_ attributes starting off as empty strings. At the same time I have noticed a similar problem with any mixed elements, the "export" method is missing the "hasContent_" condition check when printing out the tail tag for the element. I see in the "generateExportFn" function there is a condition for mixed elements that only allows them to have the exporting of children and the printing of the end tag. Is there something that prevents a mixed element from having the same method as a non-mixed element? I removed the "element.isMixed()" condition and left the else content to run every time an element has their export method built and I haven't seen any errors yet. Again, thank you for taking the time to look at my suggestions and ideas, Andrew Dorrycott Confidentiality Notice: This e-mail message (including any attached or embedded documents) is intended for the exclusive and confidential use of the individual or entity to which this message is addressed, and unless otherwise expressly indicated, is confidential and privileged information of Rackspace. Any dissemination, distribution or copying of the enclosed material is prohibited. If you receive this transmission in error, please notify us immediately by e-mail at ab...@rackspace.com, and delete the original message. Your cooperation is appreciated. ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ generateds-users mailing list generateds-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/generateds-users