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

Daniel Kulp resolved XMLSCHEMA-64.
----------------------------------
    Fix Version/s: 2.3.1
         Assignee: Daniel Kulp
       Resolution: Fixed

> Schema walker thinks an element was previously visited when it's not
> --------------------------------------------------------------------
>
>                 Key: XMLSCHEMA-64
>                 URL: https://issues.apache.org/jira/browse/XMLSCHEMA-64
>             Project: XmlSchema
>          Issue Type: Bug
>            Reporter: Oscar Westra van Holthe - Kind
>            Assignee: Daniel Kulp
>            Priority: Major
>             Fix For: 2.3.1
>
>
> Consider this schema:
> {code:xml}
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="https://www.github.com/opwvhk/schemawalkerbug"; 
> xmlns="https://www.github.com/opwvhk/schemawalkerbug";
>            xmlns:xs="http://www.w3.org/2001/XMLSchema"; 
> elementFormDefault="qualified">
>     <xs:element name="RepeatedSubElementNames">
>         <xs:complexType>
>             <xs:sequence>
>                 <xs:element name="wrappedStringArray">
>                     <xs:complexType>
>                         <xs:sequence>
>                             <xs:element name="array" minOccurs="0" 
> maxOccurs="unbounded">
>                                 <xs:complexType>
>                                     <xs:sequence>
>                                         <xs:element ref="string"/>
>                                     </xs:sequence>
>                                 </xs:complexType>
>                             </xs:element>
>                         </xs:sequence>
>                     </xs:complexType>
>                 </xs:element>
>                 <xs:element name="wrappedNumber">
>                     <xs:complexType>
>                         <xs:sequence>
>                             <xs:element name="array" minOccurs="0" 
> maxOccurs="unbounded">
>                                 <xs:complexType>
>                                     <xs:sequence>
>                                         <xs:element ref="number"/>
>                                     </xs:sequence>
>                                 </xs:complexType>
>                             </xs:element>
>                         </xs:sequence>
>                     </xs:complexType>
>                 </xs:element>
>             </xs:sequence>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="string">
>         <xs:complexType>
>             <xs:simpleContent>
>                 <xs:extension base="xs:string"/>
>             </xs:simpleContent>
>         </xs:complexType>
>     </xs:element>
>     <xs:element name="number">
>         <xs:complexType>
>             <xs:simpleContent>
>                 <xs:extension base="xs:int"/>
>             </xs:simpleContent>
>         </xs:complexType>
>     </xs:element>
> </xs:schema>
> {code}
> When walking this schema, the 2nd {{array}} element is not traversed, 
> resulting in missing the subelements {{{}number{}}}.
>  
> To fix, in line 237 of {{{}XmlSchemaWalker.java{}}}, adjust the cycle 
> detection.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to