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:
http://xml.apache.org/cocoon/howto/xmlform-wizard/howto-xmlform-wizard.html
And JXPath's docs:
http://jakarta.apache.org/commons/jxpath/users-guide.html#Containers


Ivelin

----- Original Message -----
From: "Iker Ametzaga" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, October 25, 2002 6:01 AM
Subject: Re: Handling a form values and updating an XML


> 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 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 only 1
> > person at the time does access the file.  AFAIK Apart from this there
> > is no standard way of writing to a file in Cocoon.
> >
> > Bert
> >
> > At 11:43 25/10/2002 +0200, you wrote:
> >
> >> 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 much.
> >> Iker Amezaga
> >>
> >>
> >> ---------------------------------------------------------------------
> >> 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]>
> >
>
>
>
> ---------------------------------------------------------------------
> 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]>

Reply via email to