[ 
https://issues.apache.org/jira/browse/XERCESC-2019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777742#comment-13777742
 ] 

mahalakshmi commented on XERCESC-2019:
--------------------------------------

Sorry for the delay.
Attached is the sample program for parsing a simple XML.
I have attached the file of 82 MB bmp (encoded contents embedded in the xml 
tag).
While parsing this XML i am getting out of memory exception.
Can anyone tell me whats the maximum XML file size the xerces DOM parser can 
parse.

Thanks
                
> Error in memory allocation for even small messages.
> ---------------------------------------------------
>
>                 Key: XERCESC-2019
>                 URL: https://issues.apache.org/jira/browse/XERCESC-2019
>             Project: Xerces-C++
>          Issue Type: Bug
>          Components: DOM
>    Affects Versions: 3.1.1
>         Environment: windows XP vc9, linux and solaris
>            Reporter: mahalakshmi
>              Labels: patch
>             Fix For: 3.1.1
>
>         Attachments: zippedfiles.zip
>
>
> I have my xsd schema using which i have created my standard xml.
> After creating the xml i fill the values for each tag in my xml. 
> I get memory allocation error when i try to traverse through the xml and set 
> the values for each tag in my xml.
> I get allocation error when my program calls the setTextcontent() of 
> xerces.It is crashing in DOMDocumentImpl.cpp allocate(size).(2nd if condition 
> in that function)
> Is there any setting that needs to be done for memory allocation? How much is 
> the maximum size of xml that xerces can parse?how do we manage the memory 
> allocation and deallocation in DOM?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to