cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peter maas <>
Subject Fragments and toDom
Date Fri, 06 Aug 2004 22:38:06 GMT

I'm experimenting with building a dom within an xsp file to which I 
would like to add a document fragment.
The api doc tells me the following:

XMLFragment has the following method defined in its' interface:


which appends the xmlBytes stored in the document fragment to the domtree.

If I try to do this, cocoon responds with the message the the toDom 
function is:
"The method toDom(org.w3c.dom.Node) is undefined for the type XMLFragment"/

The strangest thing is, that if I list the objects' methods using 
introspection it turns out that the toDom(Node) method is availlable in 
the object....
Introspection details:

public void 
throws org.xml.sax.SAXException
public void 
org.apache.cocoon.xml.AbstractSAXFragment.toDOM(org.w3c.dom.Node) throws 
public native int java.lang.Object.hashCode()
public final native java.lang.Class java.lang.Object.getClass()
public final void java.lang.Object.wait() throws 
public final native void java.lang.Object.wait(long) throws 
public final void java.lang.Object.wait(long,int) throws 
public boolean java.lang.Object.equals(java.lang.Object)
public final native void java.lang.Object.notify()
public final native void java.lang.Object.notifyAll()
public java.lang.String java.lang.Object.toString()

private java.lang.Object 

any ideas about what I might be doing wrong?

Peter Maas
Application Architect / Streaming
Noterik Multimedia BV
Polderweg 102
Postbus 92122
1090 AC Amsterdam
Tel: +31 (0)205929966
Fax: +31 (0)204688405
Gsm: +31 (0)624687952

Take a look at our streaming solutions:
Recent project:

View raw message