What if you wanted to parse the xml document with DOM to insert content into a particular node somewhere in your xml file? Would you use XSP?
I know there is an XSPUtil Class that has some methods to allow this. Although, I still haven't found good examples of its use. Thanks, Vishal Ferran Urgell wrote: > > In the xsl you can try something like: > > <?xml version="1.0"?> > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:sql="http://apache.org/cocoon/SQL/2.0" > xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" > extension-element-prefixes="redirect"> > > <xsl:template match="/"> > <redirect:write file="../webapps/ROOT/file.txt"> > > < Here put the xsl sentences........like apply templates.....> > > </redirect:write> > </xsl:template> > </xsl:stylesheet> > > ----- Original Message ----- > From: "Bert Van Kets" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Thursday, February 14, 2002 10:54 AM > Subject: writing xml to file > > > I have built a system where I can edit the content of an xml file in a > > browser by using html forms. Comparing the request object with the > > original XML (by use of ID's and aggregation) lets me contruct the updated > > xml file with the original structure. > > I would like to write this file to disk, well actually overwrite the > > original xml file. > > How do I go about this in Cocoon? > > Thanks, > > Bert > > > > > > --------------------------------------------------------------------- > > 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]> > > > > > > --------------------------------------------------------------------- > 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]> -- Vishal Khatnani -- x74287 Applications Support/Sys Admin Infrastructure Support Group (ESIT) Sun Microsystems, Inc. --------------------------------------------------------------------- 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]>