Hello,
I have a XML document with some values, that I pass to an html form
using a XSL. When the form is submitted with the new values, I want to
update the XML document with these new values. Which is the best way of
doing this, using all the power of cocoon 2.1. That's all, thank you
very
I'm using the FileWritingTransform to do this. There are lots of samples
in the portal demo where the user data is written to disk. It supports
full XPath in the file, so you can add or replace XML parts.
There is a big BUT though!!!
There is no file locking in the FWT, so you must make sure
Could I use xmlforms, with a bean handling the form values and updating
the XML document usin jdom? Is it possible? Thanks.
Bert Van Kets wrote:
I'm using the FileWritingTransform to do this. There are lots of
samples in the portal demo where the user data is written to disk. It
supports
Yes,
XMLForm is an alternative .
The webapp/samples/xmlform demo uses a DOM object nested within a JavaBean.
This should be enough to get you started.
You would probably want to use XMLDocumentContainer as a wrapper bean for
your DOM object.
See also the HOWTO: