DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6421>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6421

java.lang.outOfMemory Exception during parsing and getting global elements.





------- Additional Comments From [EMAIL PROTECTED]  2002-02-15 07:23 -------
HI,
     The problem caused was due to an error within the schema. When I tried to 
simulate the problem with a simpler .xsd:

(element "creditInfo" is of type "CreditType"
within the complexType declaration for "CreditType": I am 
having an element "creditInfo2" which is once again of type "CreditType")

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
   <xsd:element name="customer" type="CustomerType"/>
   <!-- this is junk -->
   <xsd:complexType name="CustomerType">
       <xsd:all>
          <xsd:element name="creditInfo" type="CreditInfo"/>
       </xsd:all>
       <xsd:attribute name="code" type="xsd:string"/>
   </xsd:complexType>
  
   <xsd:complexType name="CreditInfo">
      <xsd:all>
         <!-- simulated the problem with the below line -->
         <xsd:element name="creditInfo2" type="CreditInfo"/>
         <xsd:element name="cardNum" type="xsd:string"/>
         <xsd:element name="creditRating" type="xsd:string"/>
         <xsd:element name="creditLimit" type="xsd:float"/>
      </xsd:all>
   </xsd:complexType>
</xsd:schema>

Circular referencing over here.
Now that I know what the problem is, Is there anyway to detect this kind of 
circular referencing within the schema while parsing through it?  
     I am also aware of the fact that the parser only permits forward 
references in case of <include>d or <import>ed files and circular referencing 
gives an error.  Can the parser detect the same kind of problem when this 
happens within the schema? 

Thanx in advance.
Rahul.
p.s. I am sorry my last bug report was a bit obscure--- I was in a hurry then:-)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to