[ https://issues.apache.org/jira/browse/XMLBEANS-401?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shashank Gupta reopened XMLBEANS-401: ------------------------------------- Hi Radu, I have also retrieved the min and maxoccurs at the element level but that also didn't give the correct value. Please see the code below at line 80. If you feel that the code is wrong, please modify the code and test it with the attached xsd if(scprops.getMaxOccurs() !=null && scprops.getMaxOccurs().intValue() >1) mulVal=true; Please also explain the following observed behavior : The other thing i have noticed that if i remove the elements line-item and shipper then SchemaParticle.getIntMaxOccurs returns right value Regards, Shashank > 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