You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org> on 2009/03/04 01:12:56 UTC

[jira] Closed: (XMLBEANS-401) SchemaParticle.getIntMaxOccurs doesn't return the correct value for some particular xsd shema(attached)

     [ 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-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org