Berin Lautenbach wrote:

>> The reason I ask is because I have a document that is about 13Mb with 
>> about 200 or 300 thousand nodes
>> 
>> calling parse to get this into a DOM document crashes after the memory 
>> hits about 2Gb.
>> I should be able to rewrite my load of this file to use Sax but that means 
>> abandoning the signature since DSIGSignature requires a DOMDoc
>> 
>> Has anyone else hit this?
>> Is there a nice solution?
>
>I don't know about "nice".  The only way I've seen is to use a detached 
>signature, and treat the document as a straight byte stream.  The 
>library will read it in in chunks, so the size won't matter.

That is sort of what I was looking to do but I could see a function in the library 
that took a byte stream
since I can stream the Xml for my document easily so that would do me

Can you tell me what function I need to use?

>Unfortunately, that means any change to the XML at all will invalidate 
>the siganture.  That's even one that doesn't affect the underlying 
>information, such as an extra space between an element name and first 
>attribute, re-ordering of attributes etc.

That is fine for me, my particular file is generated on a single line with no spaces 
between elements

        Thanks, Vin

Reply via email to