|
Hi, 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: toDom(org.w3c.dom.Node) 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: Methods: public void org.apache.cocoon.components.sax.XMLByteStreamFragment.toSAX(org.xml.sax.ContentHandler) throws org.xml.sax.SAXException public void org.apache.cocoon.xml.AbstractSAXFragment.toDOM(org.w3c.dom.Node) throws java.lang.Exception 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 java.lang.InterruptedException public final native void java.lang.Object.wait(long) throws java.lang.InterruptedException public final void java.lang.Object.wait(long,int) throws java.lang.InterruptedException 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() Fields: private java.lang.Object org.apache.cocoon.components.sax.XMLByteStreamFragment.xmlBytes 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 Web: www.noterik.nl -------------------------------------- Take a look at our streaming solutions: http://www.streamedit.com/demo.html Recent project: http://www.managenergy.tv --------------------------------------- |
