[ https://issues.apache.org/jira/browse/XBEAN-73?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Guillaume Nodet closed XBEAN-73. -------------------------------- Resolution: Fixed Fix Version/s: 2.9 Fixed at rev 512884. Thanks for the patch :-) > XsdGenerator generates <xs:any/> incorrectly > -------------------------------------------- > > Key: XBEAN-73 > URL: https://issues.apache.org/jira/browse/XBEAN-73 > Project: XBean > Issue Type: Bug > Components: spring > Affects Versions: 2.8 > Reporter: Kohsuke Kawaguchi > Assigned To: Guillaume Nodet > Fix For: 2.9 > > > On XsdGenerator.java line 102, the code reads: > if (complexCount > 0) { > out.println(" <xs:sequence>"); > for (Iterator iterator = element.getAttributes().iterator(); > iterator.hasNext();) { > AttributeMapping attributeMapping = (AttributeMapping) > iterator.next(); > if > (!namespaceMapping.isSimpleType(attributeMapping.getType())) { > generateElementMappingComplexProperty(out, > namespaceMapping, attributeMapping); > } > } > out.println(" <xs:any namespace='##other'/>"); // <--- > PROBLEM! > out.println(" </xs:sequence>"); > } > but it really needs to be: > out.println(" <xs:any namespace='##other' minOccurs='0' > maxOccurs='unbounded' />"); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.