You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Matt Hastie <m....@citr.com.au> on 2000/08/12 00:33:57 UTC
Bug Report: adoptNode on documents with deferred node expansion fails
Greetings,
The following exeception occurs when I try to use the the NON-DOM adoptNode
method
on a document that has been parsed with defer-node-expansion feature
enabled.
java.lang.ClassCastException: org.apache.xerces.dom.DocumentImpl
at
org.apache.xerces.dom.DeferredTextImpl.synchronizeData(DeferredTextImpl.java
:133)
at org.apache.xerces.dom.NodeImpl.setOwnerDocument(NodeImpl.java:301)
at
org.apache.xerces.dom.ChildAndParentNode.setOwnerDocument(ChildAndParentNode
.java, Compiled Code)
at org.apache.xerces.dom.ElementImpl.setOwnerDocument(ElementImpl.java:189)
at org.apache.xerces.dom.DocumentImpl.adoptNode(DocumentImpl.java:932)
at defect1.main(defect1.java:25)
With the defer-node-expansion feature disabled the adoptNode works, but a
new document
type node is introduced by the parser, as follows:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE a PUBLIC ""
"">
<a/>
Regards,
Matt Hastie.
---------------------------------------------------------------
Matt Hastie
Software Architect
email: m.hastie@citr.com CiTR Inc
phone: 303 417 0575 4750 Walnut Street #106
fax: 303 385 0386 Boulder CO, USA 80301
---------------------------------------------------------------
Re: Bug Report: adoptNode on documents with deferred node expansion
fails
Posted by Arnaud Le Hors <le...@us.ibm.com>.
Matt,
I just fixed that bug. Thanks for your report!
--
Arnaud Le Hors - IBM Cupertino, XML Technology Group