Prashant Reddy <[EMAIL PROTECTED]> wrote on 07/26/2007 02:19:05 AM: > Like someone else suggested earlier have you tried turning off the > Defered node expansion to see if you still face any problems ? > > > Try : > docBuilderFactory.setAttribute("http://apache. > org/xml/features/dom/defer-node-expansion", Boolean.FALSE); > > Be adviced that turning this feature off will mean your code (even if it > works) will have a semantic-lock in to behavior of Xerces XML parser.
If you're relying on certain DOM operations being thread-safe you've already locked yourself in, perhaps to a specific version of Xerces. Your code may not work with other DOM implementations and there's no guarantee that it will work with future releases of Xerces (even the next bug fix release). > > http://issues.apache.org/bugzilla/show_bug.cgi?id=27687 > > I am not sure fixing the parser to become thread-safe when it is already > declared to be not a goal is such a good idea. Besides there may be > other places in the xerces code where assumption of no concurrent access > may be made. Indeed there are. At the risk of encouraging folks to write more brittle code I won't list them here. > -Prashant Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]