> From: Durrant, Peter [mailto:[EMAIL PROTECTED]] > > Hi > > I have a JDOM document that I want to include in the output of an XSP page. > Is this possible? > > The following code is used to create the JDOM document: > <xsp:logic> > .. > org.jdom.input.SAXBuilder builder = new > org.jdom.input.SAXBuilder(); > org.jdom.Document doc = builder.build(url); > .. > </xsp:logic> > > I would then like to output the document in my XSP page: > <xsp:page> > .. > <myJDOMdoc> > <!-- output JDOM document here --> > </myJDOMdoc> > .. > </xsp:page> > > What do I need to do to output the document?
Try <xsp:expr>doc.getDocumentElement()</xsp:expr>. (getDocumentElement will return Node, right? you need node inside <xsp:expr/>) Vadim --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faqs.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>