Hi Michael,

At 12.11 20/07/2004 +0200, Heeg, Michael wrote:
Hi everbody,

I have a strange (or simple?) problem with the serialization of a
DOMDocument.

Here is the situation:
- first I open an XML file and parse it into a DOMDocument
- I transfer the relevant information of this DOMDocument into spread sheet
- I release() the DOMDocument
- after some changes, I transfer the content of the spread sheet back into a
new DOMDocument
- then I would like to serialize this DOMDocument again

And here the problem starts: the serialization only works, if I choose a
pathname different from the pathname of the opened XML file. Otherwise, the
constructor of LocalFileFormatTarget crashes/causes an exception. For me it
seems like that the opened XML file is somehow locked!? Did I forget
something after the parsing XML->DOM ???

Can you paste the code for the "I open an XML file and parse it into a DOMDocument"? I would guess you are not closing the file after you read it.


Alberto



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



Reply via email to