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. [1] http://xerces-j.markmail.org/ Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: mrgla...@ca.ibm.com E-mail: mrgla...@apache.org Prasanna <pra...@gmail.com> wrote on 08/13/2010 08:31:35 AM: > Hi, > > I just have few doubts with respect to concurrent access of > elements. I am caching the elements and threads in the system will > share these elements These threads will do node.getChildNodes & > nodeList.item etc. > > I am getting the following issues. Can you please confirm whether > these issues are related to concurrent access. Version i am using is 2.6.2 > 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. > > I know, that the xerces is not designed for concurrent access. But > i would like to get confirmed whether the above are related to > concurrent access. > > Thanks > Prasanna