[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Error when cloning DOM nodes
On Thu, 09 Nov 2000, Michael Keuchen wrote:
> Falko Braeutigam wrote:
> >
> > This additional type test is okay for an in-memory DOM. If the nodes are ozone
> > objects it always fails. I simply removed this code. See CVS.
>
> With the new code from cvs, the error message is:
>
> DOMException(11): DOMException: Exception reason is unspecified. (code
> 11)
> DOMException: Node does not support data. (code 6)
> This node type does not support values.
> at
> org.ozoneDB.xml.dom.ElementImpl_Proxy.cloneNode(ElementImpl_Proxy.java:624)
>
> Michael Keuchen
Hmmm... the problem now is that ElementImpl.cloneInto() calls super.cloneInto()
which calls setNodeValue(), which is not allowed for Elements. I checked in a
work around but I'm by no means a XML expert and someone has to look into this.
Michael, please have a look at this code.
Falko
--
______________________________________________________________________
Falko Braeutigam mailto:falko@smb-tec.com
SMB GmbH http://www.smb-tec.com