thomak
2006-08-24 10:39:26 UTC
Hi,
I tried to read large XML files using DOM on HP, using version .27.
Until 20 MB it works fine, but there is a limit, that I get,
when the structure gets bigger, it means also, the file is mostly bigger
too.
Problem:
During reading, the Reader (see below) quit reading returning exception.
It happens, when the process acheived the mark of 674 MB of used RAM.
I tried it on different machines and it is allways the same.
Is there a memory limit for xerces?
Thanks and greetings
Thomas
parser->setValidationScheme( XercesDOMParser::Val_Auto ) ;
parser->setDoNamespaces( false ) ;
parser->setDoValidation(true);
parser->setLoadExternalDTD( false ) ;
ErrorHandler* errHandler = (ErrorHandler*) new HandlerBase();
parser->setErrorHandler(errHandler);
try{
INFO("XML file to parse[" << xmlFile << "]\n");
parser->parse( xmlFile.c_str() ) ;
I tried to read large XML files using DOM on HP, using version .27.
Until 20 MB it works fine, but there is a limit, that I get,
when the structure gets bigger, it means also, the file is mostly bigger
too.
Problem:
During reading, the Reader (see below) quit reading returning exception.
It happens, when the process acheived the mark of 674 MB of used RAM.
I tried it on different machines and it is allways the same.
Is there a memory limit for xerces?
Thanks and greetings
Thomas
parser->setValidationScheme( XercesDOMParser::Val_Auto ) ;
parser->setDoNamespaces( false ) ;
parser->setDoValidation(true);
parser->setLoadExternalDTD( false ) ;
ErrorHandler* errHandler = (ErrorHandler*) new HandlerBase();
parser->setErrorHandler(errHandler);
try{
INFO("XML file to parse[" << xmlFile << "]\n");
parser->parse( xmlFile.c_str() ) ;
--
View this message in context: http://www.nabble.com/xercesc-dom-input-structure-size-limit%2C-RAM-limit--tf2157920.html#a5961473
Sent from the Xerces - C - Users forum at Nabble.com.
View this message in context: http://www.nabble.com/xercesc-dom-input-structure-size-limit%2C-RAM-limit--tf2157920.html#a5961473
Sent from the Xerces - C - Users forum at Nabble.com.