I did this using JTidy. In my case I validated a string containing html and converted to xhtml. JTidy also has an option to parse XML and another one to ouput to a DOM document stream. Some samples are available on the JTidy site at http://sourceforge.net/projects/jtidy/
Bert At 19:27 13/07/2002 -0500, you wrote: >Hi All, > >I want to send a block of XML from a form to a new XML page which will >render it. > >Does anyone know how can I use XSP to get the block and treat it as XML >(like xsl:copy-of) ? >It may be a simple one but I cant find any reference to it. >It is for Cocoon 1.8 (last project on this platform - moving to 2.x next >time round !). > >Many Thanks in Advance. > >Colm. > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> To unsubscribe, e-mail: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>