[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-j-dev
Subject:    Re: Concurrent Access - getChildNodes Doubts
From:       Michael Glavassevich <mrglavas () ca ! ibm ! com>
Date:       2010-08-16 12:35:13
Message-ID: OF4095790F.A728FE8D-ON85257781.0044FA07-85257781.004527D3 () ca ! ibm ! com
[Download RAW message or body]

Prasanna <pralak@gmail.com> wrote on 08/16/2010 03:03:45 AM:

> Hi,
>
> Xerces' DOM is not thread-safe and is not required to be. If you're
> going to be sharing an instance of the DOM across threads you need
> to synchronize your access to it.
>
> See previous threads on this topic in the mailing list archives [1].
>
>
> Thanks for the reply.
>
> I know that DOM access is not thread safe. But i would like to get
> confirmed whether these issues are possible because of concurrent access.

It's possible.

> Some child nodes of an element node are not coming in getChildNodes
> I am getting different child nodes of an element node. These child
> nodes are not in no way related to the given element node.
>
> Thanks
> Prasanna

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com
E-mail: mrglavas@apache.org
[Attachment #3 (text/html)]

<html><body>
<p><tt>Prasanna &lt;pralak@gmail.com&gt; wrote on 08/16/2010 03:03:45 AM:<br>
<br>
&gt; Hi,<br>
&gt; <br>
&gt; Xerces' DOM is not thread-safe and is not required to be. If you're <br>
&gt; going to be sharing an instance of the DOM across threads you need <br>
&gt; to synchronize your access to it.<br>
&gt; <br>
&gt; See previous threads on this topic in the mailing list archives [1].<br>
&gt; <br>
&gt; <br>
&gt; Thanks for the reply.<br>
&gt; <br>
&gt; I know that DOM access is not thread safe. But i would like to get <br>
&gt; confirmed whether these issues are possible because of concurrent access.<br>
</tt><br>
<tt>It's possible.</tt><br>
<br>
<tt>&gt; Some child nodes of an element node are not coming in getChildNodes</tt><br>
<tt>&gt; I am getting different child nodes of an element node. These child <br>
&gt; nodes are not in no way related to the given element node.</tt><br>
<tt>&gt; <br>
&gt; Thanks<br>
&gt; Prasanna</tt><br>
<br>
<tt>Michael Glavassevich<br>
XML Parser Development<br>
IBM Toronto Lab<br>
E-mail: mrglavas@ca.ibm.com</tt><br>
<tt>E-mail: mrglavas@apache.org</tt></body></html>

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic