Simple answer.... no.

The single thread manipulation decision was made to avoid synchronization
problems and the performance hit that synchronization brings. A single
DOMDocument is reentrant when it comes to reading but only one thread can
change the document at a given time.
You'll need to implement a reader/writer lock to protect your document if
you'll want access to a document from multiple threads.

Regards

Erik Rydgren
Mandarinen systems AB
Sweden

-----Original Message-----
From: Bagepalli, Kiran [mailto:[EMAIL PROTECTED]
Sent: den 29 mars 2003 02:36
To: '[EMAIL PROTECTED]'
Subject: RE: DOM thread safe


Seems like one DOM cannot be manipulated from two threads. Is any work going
on in this area.
Thanks
Kiran

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, March 28, 2003 2:11 PM
To: [EMAIL PROTECTED]
Subject: RE: DOM thread safe


http://xml.apache.org/xerces-c/faq-parse.html#faq-7

> -----Original Message-----
> From: Bagepalli, Kiran [mailto:[EMAIL PROTECTED]
> Sent: Friday, March 28, 2003 5:04 PM
> To: '[EMAIL PROTECTED]'
> Subject: DOM thread safe
>
>
> How safe is accessing the same DOM across threads. Is the
> user responsible
> for maintaining the synchronization. Does anyone have sample
> code for this.
> Kiran
>
>
>  
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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


 


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


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

Reply via email to