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


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.

Reply via email to