OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   [xml-dev] schema-aware XML parser (java heap error)

[ Lists Home | Date Index | Thread Index ]

Hello all,

My java app. which uses the standard schema-aware XML parse (packaged with
j2sdk1.5.0-01) was hanging up and sometimes I got a java heap error msg.   I
narrowed it to the maxOccurs attribute of a complexType element  in my
schema. It seems if maxOccurs> 2000 for this element, the app fails.  

1) What is the working of, if you will, of a schema-aware parser?  I.e. does
it validate before parsing or validate as it parses?

2) Does the parser create a DOM tree for the validating process and that is
why maxOccurs value effects the memory allocation?  My XML file only
contains 10 instances of the offending complexType!

Thanx,


-FaridFarid Mahini
L3 Communications - Telemetry East
1515 Grundy's Lane, Bristol,  PA.  19007





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS