[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 <pralak@gmail.com> wrote on 08/16/2010 03:03:45 AM:<br>
<br>
> Hi,<br>
> <br>
> Xerces' DOM is not thread-safe and is not required to be. If you're <br>
> going to be sharing an instance of the DOM across threads you need <br>
> to synchronize your access to it.<br>
> <br>
> See previous threads on this topic in the mailing list archives [1].<br>
> <br>
> <br>
> Thanks for the reply.<br>
> <br>
> I know that DOM access is not thread safe. But i would like to get <br>
> confirmed whether these issues are possible because of concurrent access.<br>
</tt><br>
<tt>It's possible.</tt><br>
<br>
<tt>> Some child nodes of an element node are not coming in getChildNodes</tt><br>
<tt>> I am getting different child nodes of an element node. These child <br>
> nodes are not in no way related to the given element node.</tt><br>
<tt>> <br>
> Thanks<br>
> 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