[ 
https://issues.apache.org/jira/browse/XMLBEANS-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Radu Preotiuc-Pietro closed XMLBEANS-401.
-----------------------------------------

    Resolution: Invalid

Shashank,

The problem is in your code. It is very convoluted but what it ends up doing is 
print the max and minOccurs on the top-level particle of the type of the 
element, instead of the min and maxOccurs on the element itself.


> SchemaParticle.getIntMaxOccurs doesn't return the correct value for some 
> particular xsd shema(attached)
> -------------------------------------------------------------------------------------------------------
>
>                 Key: XMLBEANS-401
>                 URL: https://issues.apache.org/jira/browse/XMLBEANS-401
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: Version 2.4.1 
>         Environment: Standalone java program with OS win xp
>            Reporter: Shashank Gupta
>         Attachments: Copy of easypo.xsd, ParseXsd.java
>
>
> I am trying to compile the xsd and retrieve information(like name, type, 
> isMultivalue ) about the leaf nodes.  The SchemaParticle.getIntMaxOccurs is 
> not returning the right value. I have attached both the sample program and 
> the xsd file. 
> The other thing i have noticed that if i remove the elements line-item and 
> shipper then  SchemaParticle.getIntMaxOccurs returns right value. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xmlbeans.apache.org
For additional commands, e-mail: dev-h...@xmlbeans.apache.org

Reply via email to