Handling a form values and updating an XML

2002-10-25 Thread Iker Ametzaga
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

Re: Handling a form values and updating an XML

2002-10-25 Thread Bert Van Kets
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

Re: Handling a form values and updating an XML

2002-10-25 Thread Iker Ametzaga
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

Re: Handling a form values and updating an XML

2002-10-25 Thread Ivelin Ivanov
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: