Hi Chad, Looks like you're trying to adopt a node from a deferred DOM to a non-deferred DOM. That should work so I'm pretty sure this is a bug. Could you please open a bug report here [1]. Some test code which reproduces this condition would be much appreciated.
Thanks. [1] http://issues.apache.org/jira/browse/XERCESJ Chad La Joie <[EMAIL PROTECTED]> wrote on 10/20/2005 10:54:52 AM: > Hey guys, > I'm seeing some behavior that might be a bug, or maybe it's supposed > to work this way and I just don't get it. When the defer node expansion > feature is turned on calls to Document.adoptNode(Node) fail with the > exception listed below. It would appear that adoptNode is performing > the node expansion that it needs in order to do the adoption. The > behavior that I expected was that it would. Is this a bug, or is the > software working as design, just not as I expected? > > > java.lang.ClassCastException: org.apache.xerces.dom.DocumentImpl > at > org.apache.xerces.dom.DeferredAttrNSImpl.synchronizeChildren(Unknown Source) > at org.apache.xerces.dom.AttrImpl.setOwnerDocument(Unknown Source) > at > org.apache.xerces.dom.NamedNodeMapImpl.setOwnerDocument(Unknown Source) > at org.apache.xerces.dom.ElementImpl.setOwnerDocument(Unknown > Source) > at org.apache.xerces.dom.CoreDocumentImpl.adoptNode(Unknown Source) > -- > Chad La Joie 315Q St. Mary's Hall > OIS-Middleware 202.687.0124 > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > 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]
