Hi everybody,
I solved the "problem": the file which was referenced by "strPath" was write
protected.
Sorry!
Best regards,
Michael
> -----Urspr�ngliche Nachricht-----
> Von: Heeg, Michael
> Gesendet: Dienstag, 20. Juli 2004 12:12
> An: '[EMAIL PROTECTED]'
> Cc: Heeg, Michael
> Betreff: constructor of LocalFileFormatTarget causes crash
>
>
> 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 ???
>
> Piece of the problematic source code:
>
> XMLFormatTarget* target=NULL;
> try
> {
> target = new LocalFileFormatTarget(strPath);
> }
> catch (...) {
> delete target;
> return false;
> }
>
>
> Thanks for your help!
>
> Michael
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]